Whispar1 Posted May 13, 2013 Share Posted May 13, 2013 I have a few page links in my footer that are not redirecting to their friendly url. They are: -Specials -New Products For some reason these are the only two that throw a debug making visitors click the link to get to the correct page. http://www.whispardesign.com Any thoughts on why this is happening to just these two pages? Thanks for any input! Link to comment Share on other sites More sharing options...
vekia Posted May 13, 2013 Share Posted May 13, 2013 For your footer links you use some external solution, am I right? If it is possible, can you share the tpl file of footer links ? Link to comment Share on other sites More sharing options...
Whispar1 Posted May 13, 2013 Author Share Posted May 13, 2013 Vekia, yes it is a module within my theme: Here is the code for the quick links block: <h2>Quick Links</h2><ul> <li class="item"><a href="index.php?controller=prices-drop">Specials</a></li> <li class="item"><a href="index.php?controller=new-products">New products</a></li> <li class="item"><a href="https://www.whispardesign.com/contact_us">Contact us</a></li> </ul> I suppose a quick fix would be to replace the controller link with the friendly url page link. Unless, there is a different way to code it, that may be my best option... Link to comment Share on other sites More sharing options...
vekia Posted May 13, 2013 Share Posted May 13, 2013 prices drop: {$link->getPageLink('prices-drop')} new products: {$link->getPageLink('new-products')} Contact us: {$link->getPageLink($contact_url, true)} voilà ;-) Link to comment Share on other sites More sharing options...
Whispar1 Posted May 13, 2013 Author Share Posted May 13, 2013 Thanks Vekia Because the information is entered through a module in the back office, the above code will not work like it would if controlled by a tpl file (where it would work perfectly). The module works similar to the html anywhere module. So the only thing I could think to do is just change the links in the list to the actual friendly url link. (see attached screen) Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2013 Share Posted May 14, 2013 so, the urls are "hardcoded" maybe put them into the .tpl file as an additional code (use code that i pasted above) Link to comment Share on other sites More sharing options...
Recommended Posts