noesac Posted September 18, 2010 Share Posted September 18, 2010 I added the following link to the bottom of my blockcart.tpl file: It works perfectly when you click on it from a https page. But when you click on it from a regular http page, it works the first time...but if you then click the same link a second or third time, it continually adds another /content/ to the URL, as follows: www.website.com/content/content/cms.php?id_cms=16If you click it five times for example it does this: www.website.com/content/content/content/content/content/cms.php?id_cms=16I tried to add the following but this didn't seem to fix it: Any ideas? Link to comment Share on other sites More sharing options...
rocky Posted September 19, 2010 Share Posted September 19, 2010 Try the following: <a href="{$link->getCMSLink(16, 'ssl-security')}"> Link to comment Share on other sites More sharing options...
noesac Posted September 19, 2010 Author Share Posted September 19, 2010 Great thanks Rocky that did it. When should I use $link vs. base_dir_ssl?Is there a general "rule of thumb" that I should follow? Link to comment Share on other sites More sharing options...
rocky Posted September 19, 2010 Share Posted September 19, 2010 You should always use $link if possible, but in general, you should use {$base_dir_ssl} when you want to link to a page that should be https and {$base_dir} when you want to link to a page that should be http. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now