-
-
Notifications
You must be signed in to change notification settings - Fork 731
Better handling of multiple matching template wildcard paths #996
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
Comments
Relevant code: Lines 1030 to 1037 in 14982bd
Lines 951 to 954 in 14982bd
Lines 1197 to 1207 in 14982bd
|
This line was meant to handle this case, by only matching non-/ characters. Looks like it did not have the desired effect: Line 1204 in 14982bd
Maybe because the finished regex doesn't include |
One option: compare the length of the matches and pick the shortest one. |
I tried building this:
And it didn't work - hits to /foo/bar which should have been rendered by the
{slug}.html
template were instead rendered by the top level{topic.html}
template.The text was updated successfully, but these errors were encountered: