Jump to content

Missing link in breadcrumb.


Recommended Posts

I've noticed an issue with my breadcrumb menu. This probem only arises if I have the Products Category module enabled and then follow a link from the "other products in the same category" section. Specifically, the category part of the breadcrumb ceases to be a link, it is just text wrapped in a span tag.

 

For example, in the menu below:

 

Home > Category > Product Name

 

"Home" would be a link, while "Category" would not be a link. If I navigate to this product by another route, then "Category" would be a link back to the relevant category page.

 

 

Any ideas as to the cause of this?

Link to comment
Share on other sites

I tried a completely fresh installation of Prestashop on a new database using nothing but the default theme and the sample products to investigate this problem. After installation II enabled the products category module. At this point everything works as it should. The page source looks like:

 

 

<!-- Breadcrumb -->
<div class="breadcrumb">
<a href="http://192.168.1.2/foo/" title="Return to Home"><img src="http://192.168.1.2/foo/themes/default/img/icon/home.gif" height="26" width="26" alt="Home" /></a>
<span class="navigation-pipe" >></span>
<a href="http://192.168.1.2/_newshop/prestashop/index.php?id_category=3&controller=category&id_lang=1" title="iPods">iPods</a><span class="navigation-pipe">></span>iPod touch
</div>
<!-- /Breadcrumb -->

 

 

I then enabled friendly url's in the back office. Now the breadcrumb menu is broken. The page source is below:

 

 

<!-- Breadcrumb -->
<div class="breadcrumb">
<a href="http://192.168.1.2/foo/" title="Return to Home"><img src="http://192.168.1.2/foo/themes/default/img/icon/home.gif" height="26" width="26" alt="Home" /></a>
<span class="navigation-pipe" >></span>
iPods
<span class="navigation-pipe">></span>iPod shuffle
</div>
<!-- /Breadcrumb -->

 

 

As you can see, the category "iPods" in no longer a link. Disabling friendly url's fixes the problem.

 

I'm using XAMPP,, which may be a factor.

Edited by Zwirko (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 1 year later...
  • 10 months later...
×
×
  • Create New...