Django additive href links

by: scott.wagemann, 8 years ago


I'm creating a django site after watching the django tutorial and I'm a bit stuck.  I want my href links to replace rather than being additive.  Image clicking on the "Community" tap on this site 5 times and seeing this in the url:  https://pythonprogramming.net/community/community/community/community/community/

here is my button code:
<a class="btn btn-primary" href="student/" role="button" style="background-color:#FFFFFF; color:#000000">Student</a>

I've tried without the backslash and that doesn't work either..



You must be logged in to post. Please login or register an account.



Interesting, I guess I would build it via jquery and logic, just building a string, then, finally when done, serve whatever the URL was.

-Harrison 8 years ago

You must be logged in to post. Please login or register an account.