-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template Route Variables incorrectly mapped when partial URLs supplied #3740
Comments
Following a suggestion from Paul Bailey I applied the 'regex' route fix - if the fix is applied to all of the segments in the route, the route performs correctly.
But not sure this is a viable long term solution - as if for no other reason it compels use of regex rule for each segment. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
Have a simple Template Route defined.
This will route any URI beginning with
/test
to a nominated template.At that template I have the following template code
If you hit that URL with four populated slugs you get the expected results:
However if you hit the URL with only partially completed slugs you get some odd outcomes:
and
So in one a slug is being split across two template route defined slugs, in the other the slug is being allocated to the "wrong" template route slug.
How To Reproduce
Steps to reproduce the behavior:
If you want to confirm steps are as described above. You can have a play with the test template here.
Environment Details:
EE6.4.14
php 8.1
Additional context
Appears to be another variant of this issue (that has been on this list for a long time, and weirdly is listed as an "enhancement" rather than a "bug"...).
The text was updated successfully, but these errors were encountered: