Skip to content
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

related_urls match too much #22

Open
Natureshadow opened this issue Nov 16, 2020 · 0 comments · May be fixed by #25
Open

related_urls match too much #22

Natureshadow opened this issue Nov 16, 2020 · 0 comments · May be fixed by #25

Comments

@Natureshadow
Copy link
Contributor

The new related_urls feature matches too much, i.e. in the middle of a string.

Giving /car as related URL will not only match /car/1, but also /drinks/categories/carbonated. Using a trailing / would help a bit, but that would mean that /person is not matched under all circumstances.

Natureshadow added a commit to Natureshadow/django-menu-generator that referenced this issue Nov 16, 2020
@Natureshadow Natureshadow linked a pull request Nov 16, 2020 that will close this issue
Natureshadow added a commit to Natureshadow/django-menu-generator that referenced this issue Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant