Jump to content

Dead links footer after using CMS link


vantheman9

Recommended Posts

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 by vantheman9 (see edit history)
Link to comment
Share on other sites

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 by vantheman9 (see edit history)
Link to comment
Share on other sites

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 by vantheman9 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...