I would like to simply have a link in the page footer that a user, logged in or not, will click on to take them to the www.site.com/user/ page, but using a href="./user/" won't work, because if the user is on a node when he/she wants to log in, the link will direct the user to site.com/node/user/ and give a Page not found error.

Is there a simple way to make a link to the user page without resorting to PHP?

Comments

vjordan’s picture

href="www.example.com/user/" should do it for you

geerlingguy’s picture

I could do that, but I'd rather use a relative link, as this website will likely be changing hosts soon; the group is a non-profit organization, but they don't have a .org site yet; they'll be switching from a local site (on my computer) to .net, then to .org, and I'd rather not have to keep changing that specific link. I will if I have to, but I'd rather make it relative.

__________________
Personal site: www.jeffgeerling.com

ju’s picture

just try "href="/user"

geerlingguy’s picture

So it does; thanks for the tip; I don't know why I thought it should be so complicated, then.

__________________
Personal site: www.jeffgeerling.com

vjordan’s picture

href="/user" works for me as a relative link.