Adding Links to .tpl files?

I’m trying to add a link to the login page in the customer/mail/profiles_info.tpl



Now I know I can just add the exact link as in:

[QUOTE]

Go To My Account Login Page

[/QUOTE]



I would like to know how to path links in smarty templates. Just to learn the correct method for doing this:



In the recover_password.tpl there is a link that is an auto login for those looking to recover their password:

{$http_location}/{$index_script}?{$target_name}=auth&{$mode_name}=recover_password&ekey={$ekey}

I’ve tried to use the same “methodology” for the link to the login page but everything I try redirects me to the home page?


Go To My Account Login Page



Why doesn’t this work?

Any help here would be appreciated.



Thanks

Web Guy

Are you saying the “hard-coded” link you have above works?

Go To My Account Login Page





I ask because where did you come up with [COLOR=“Red”]mode=login_form[/COLOR]

Hey Mike,



Yeah, the hard-coded link works fine…as long as I’m not already logged in.

If I’m logged in the hard-coded link redirects to the home page.



Hmmm…maybe I tested the other smarty link when I was logged in?

I’ll check to make sure and get back to you.

Yep…duh? I’m stupid…I was testing the link when I was logged in and didn’t realize I had to log out first…LOL



Way too many Browser windows open at the present time.



Thanks for asking the question though…it helped engage my brain again.

Forgot to answer your question:


[QUOTE]I ask because where did you come up with mode=login_form[/QUOTE]



I just scrolled over the “Log in” link in the my account sidebox and check the “status” bar on the bottom of the browser OR right-click the link and select properties…



I haven’t turned SEO on yet so I’m seeing the full URLs.



Thanks again