I have an example website using django. I have 2 link "about" and "blog". When I click "blog" it become localhost/blog and nothing problem, but when I click "blog" once more it become localhost/blog/blog and error happen. What's the solution?
Asked
Active
Viewed 27 times
0
-
Please post your `urls.py`. – michjnich Aug 05 '22 at 10:02
-
Also the part of the template with the "blog" link ... – michjnich Aug 05 '22 at 10:08
-
Your link tag is probably `` which just adds 'blog' to the current URL, hence you get /blog/blog/. You need to include a forward slash before it: `` – 0sVoid Aug 05 '22 at 11:09