tags:

views:

53

answers:

1

If i go to www.mysite.com/login, everything displays like it should.

But when i want to go from mysite.com/login to mysite.com/register, i end up in mysite.com/login/register.

How can i solve this problem?

+1  A: 

It is hard to tell without some code but I guess on your login site you have a link like:

<a href="register/">Register</a>

which should probably be

<a href="{% url name_of_register_url %}>Register</a>

Can you provide your url.py and the HTML code for that link?

Felix Kling
Yep, that worked. Thanks!
The important thing to note is that a `href` that's not beginning with a `/` is relative to the current page.
drmegahertz
misterwebz: don't forget to select Felix's answer as the solution. It will help his reputation and close out the question.
Off Rhoden
Forgot about that. I'll do it immediately.