Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
chrisulfarks
@chrisulfarks
Hello guyz

I have a problem with my urls on my site, a little bug that is quite disturbing.

My urls are of this form: localhost:8000/organization/my-organization-test/37

Which works very well.

The bug I have is that I can replace "my-organization-test" with anything, as long as the ID exists, the page will still appear.

When I do localhost:8000/organization/my-xxxx-test/37, the organization with ID 37 will appear.

I don’t understand how this can happen, I use slugify in my Twig file
Do you think it came from slugify or from my controller?
Florian Eckerstorfer
@florianeckerstorfer
Hey, if your router only uses the ID part of the URL to determine which content to show it can not come from Slugify