- π³π¬Nigeria chike Nigeria
I applied #69 on Drupal 9 and I still have the scenario described at #32 π Hyphens and forward slashes (-/) break Views contextual filters Needs work being that for terms without dashes in the names like 'two words' the page would load but for terms with a dash in the name like 'two-words' it would be page not found.
'two words' url = 'two-words'
'two-words' url = 'two-words'The former loads the page the latter shows page not found.
I got 'Transform dashes in URL to spaces in term name filter values' turned on.
Before I applied the patch I think I had exact same experience at #32 like turning 'Transform dashes in URL to spaces in term name filter values' on and off will switch back and forth to working for the 2 scenarios like if turned on it works when a dash is in the name and when turned off it works when no dash in the name and stops working for when there is a dash in the name. I cannot remember exactly if this was so but I remembered that when I first noticed some pages showing page not found I fiddled and turned on 'Transform dashes in URL to spaces in term name filter values' and the issue went away not until some other day I clicked a page and it wasn't working then I turned off 'Transform dashes in URL to spaces in term name filter values' and it started working for the page. I didn't think about terms with a dash in the name or not as at then but I kept getting confused as I kept turning 'Transform dashes in URL to spaces in term name filter values' on and off and each time it would work for the page I was on and tomorrow I check some other page and it won't be working.
Now with patch #69 it only works for terms with no dashes in the names i.e. 'two words' and for 'two-words' it won't work either 'Transform dashes in URL to spaces in term name filter values' is turned on or off.
- π³π¬Nigeria chike Nigeria
I tried this patch β¨ Let the 'Transform dashes in URL to spaces in term name filter values' find terms that should contain the dash Needs work instead and it worked better.
Both 'two words' and 'two-words' term names work. - π³π¬Nigeria chike Nigeria
Well I thought 'it worked better' but it doesn't so I am back here and will go back to patch #69 π Hyphens and forward slashes (-/) break Views contextual filters Needs work once I resume work tomorrow.
- π¬π§United Kingdom joehuggans Harrogate, UK
#69 working with Drupal 10.2.3
Our issue was specifically with forward slashes in an argument.
- Merge request !9546Issue #672606: Hyphens and forward slashes (-/) break Views contextual filters β (Open) created by acbramley