My problem is people keep linking to example.com/FooBar but the actual link is example.com/foobar.
My current regex is…
SLUG = '(?P<slug>[\w\d-]+)'
I hope that makes sense. I was surprised I couldn’t find this question already asked. Maybe my google fu is weak today.
The regex matches both. The difficulty is that you’ve likely got a query like:
Which isn’t matching.
To fix this, change the query to: