vantheman9 Posted May 18, 2013 Share Posted May 18, 2013 (edited) I got dead links in my footer after using ether of my two CMS pages (next to the categories). What the problem is: Normal footer links refer to the page in the root directory (root/page.php). After selecting on of the CMS content pages, the footer links refer to another subdir (root/content/page.php). Whats the cause, and how can I fix this!? Edited May 18, 2013 by vantheman9 (see edit history) Link to comment Share on other sites More sharing options...
Piotr Kaczor Posted May 18, 2013 Share Posted May 18, 2013 (edited) Hello You need to change href attribute in this links from <a href="page.php"></a> to <a href="/page.php"></a> Edited May 18, 2013 by Piotr Kaczor (see edit history) Link to comment Share on other sites More sharing options...
vantheman9 Posted May 18, 2013 Author Share Posted May 18, 2013 (edited) The problem is the extra subdir (content) after selecting the CMS page. Cannot find where the addition comes from. Edited May 18, 2013 by vantheman9 (see edit history) Link to comment Share on other sites More sharing options...
Piotr Kaczor Posted May 18, 2013 Share Posted May 18, 2013 (edited) What module generates these bad working links? Or you add them manually? Host that picture on Imageshack, it need password, on hosting You probably logged-on so You don't see password prompt. Edited May 18, 2013 by Piotr Kaczor (see edit history) Link to comment Share on other sites More sharing options...
vantheman9 Posted May 18, 2013 Author Share Posted May 18, 2013 (edited) BlockCMS <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4>{l s='Information' mod='blockcms'}</h4> <ul> <li class="first_item"><a href="{$link->getPageLink($contact_url, true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> {/if} {/foreach} <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='Sitemap' mod='blockpermanentlinks'}</a></li> {if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com">PrestaShop</a>™</li>{/if} </ul> {$footer_text} </div> <!-- /MODULE Block footer --> Edited May 18, 2013 by vantheman9 (see edit history) Link to comment Share on other sites More sharing options...
vantheman9 Posted May 18, 2013 Author Share Posted May 18, 2013 (edited) Probably the thing is that the CMS pages are located in a virtual content dir (content dir does NOT exist in the folder tree): http://ekovleesbeste...bestelprocedure Edited May 18, 2013 by vantheman9 (see edit history) Link to comment Share on other sites More sharing options...
Piotr Kaczor Posted May 18, 2013 Share Posted May 18, 2013 Code looks fine to me. What version of Prestashop do You use? Can You copy and paste here line from "config/config.inc.php" that begins with define('__PS_BASE_URI__', it's around line 92 Or go to Back Office and check what Your Base URI is set to: Link to comment Share on other sites More sharing options...
vantheman9 Posted May 18, 2013 Author Share Posted May 18, 2013 Your current prestashop version : 1.4.9.0 Shopdomain: "/biologisch/" Base URI: "ekovleesbestellen.nl" Link to comment Share on other sites More sharing options...
vantheman9 Posted May 18, 2013 Author Share Posted May 18, 2013 (edited) The categorie / CMS header links code: <!-- TM Categories --> <div id="tmcategories"> <ul id="cat"> {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $smarty.foreach.blockCategTree.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child} {/if} {/foreach} <li> <a href="http://ekovleesbestellen.nl/biologisch/cms.php?id_cms=1" >Onze bestelprocedure</a> </li> <li> <a href="http://ekovleesbestellen.nl/biologisch/cms.php?id_cms=4" >Ons bedrijf</a> </li> <li> </ul> </div> <!-- /TM Categories --> The problem occurs for the added links. As you can see these are not in the subdir biologisch/content but in the root (biologisch). So... Why does Prestashop load the the following URL when selecting either of the added links: http://ekovleesbestellen.nl/biologisch/content/1-bestelprocedure Is it rewritten or so? Edited May 18, 2013 by vantheman9 (see edit history) Link to comment Share on other sites More sharing options...
vantheman9 Posted May 20, 2013 Author Share Posted May 20, 2013 Clue anyone? I don't get why the two custom CMS pages come up in the root/content directory, since there is no physic directory. 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