Relative Content

Tag Archive for djangourl

django strange behavior with url with slug and /

I am encountering a strange django behavior that I don’t see where it could go wrong.
I have the start of an app that returns dynamic pages whose url is created through the slug.
Everything works well. With any slug I try it works perfectly and the urls find their path without problem. They all go through the same path.
But there is ONLY one slug that does not find the path.
The peculiarity of the behavior is that in the browser’s url it is the only <a href> that adds the / to the url, even though in the html code it does not have the / in the href.
I don’t understand when the / is added, since all the pages are generated dynamically and go through the same process.