Closed (duplicate)
Project:
Drupal core
Version:
8.9.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jul 2015 at 11:29 UTC
Updated:
30 Jul 2021 at 09:30 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerAt least #2509300: Path alias UI allows node/1 and /node/1 as system path then fatals did not changed that behaviour IMHO. Are you sure that you're assumption about the behaviour is correct?
In case yes, no question, we absolutely should validate it, in case no, we probably better want to convert it due to consistency.
Comment #2
hass commentedMy code has failed without leading slashes and caused over 160 failures in GA:
Now it works again, but if the paths are not saved with leading slashes matchPath() never match and this may be highly confusing to users first.
Do you mean users known they need the slash in front and otherwise the path match will fail? I'm sure it may takes until D9/D10 that people will remember to prefix paths all times. This are not autocompletes... and core is still not consistent. We will end with a lot of support requests I guess...
Comment #3
catchSwitching to bug. Unlike #2509300: Path alias UI allows node/1 and /node/1 as system path then fatals this looks like it doesn't result in a fatal (or any) error in the UI, the visibility rules just don't work and could be corrected manually, so leaving status for now.
Comment #12
catchMarking duplicate of #2843992: Block page visibility paths are not validated, using path a without leading forward slash does not work which has a patch.