Request Path with underscore not working

Created on 28 January 2025, 7 months ago

Problem/Motivation

Cannot use Context with URLs with underscores in. As these are legitimate in Drupal they should be recognised by Context.

Steps to reproduce

1) Create a context
2) Add Request Path condition
3) Set page with underscore e.g. /top_ten

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇬🇧United Kingdom gwenver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gwenver
  • 🇸🇮Slovenia deaom

    I've created a context and added the Request Path condition which has the /top_ten added. I've also added a reactions -> blocks to easily test what's happening. Created an article and set the URL alias to /top_ten. After visiting the page the reactions block was displayed correctly as it was only showing on the /top_ten node and not others.
    Can you confirms if this issue still exists? And if it does, could you provide more detailed steps fore reproducing the issue?

Production build 0.71.5 2024