Jump to content

Proper way to hard link pages.


Recommended Posts

See i remember in 1.4 when you manual created a hard link somewhere. you would do it like this.

 

 

<a href="{$link->getPageLink('content/category/3-instructions', true)}" title="{l s='Injection Instructions'}">{l s='Instructions'}</a>

And in 1.4 this worked correctly.

 

but now with 1.5 it puts the url as.

en/index.php?controller=content/category/3-instructions

 

when it should be http://www.xxx.com/content/category/3-instructions

 

 

What should the format be or should i just go threw all my links and change them?

Link to comment
Share on other sites

I've always done it like <a href="{$base_dir}page or product name" title="Title Name" >Link Name</a> For me if your going to hard code it you might as well fill in most of the information by hand than trying to make it dynamic it less of a look up for page load.

Link to comment
Share on other sites

  • 3 weeks later...

I was looking at this more, if you do it this way and you have mult language on and have errors displayed on it will not work. Since this way there is no language code in the url. Is there a varable for the current language code?

Link to comment
Share on other sites

×
×
  • Create New...