You are here:  » Problematic characters in urls from data feed - breaking rewrite on index

Support Forum



Problematic characters in urls from data feed - breaking rewrite on index

Submitted by GemViper on Wed, 2010-04-28 13:16 in

I have a data feed in which the product description includes the brand name in front of product name like this...

product brand : product name

On the products.php page the url is properly written and works like this (after rewrite)...

/product/brand-name-product-name-etc.html

HOWEVER on the index page the url is not properly written and works like this (after rewrite)...

/product/brand-name-:-product-name-etc.html

Notice the ":" being included. The result is that when you click on the link from the index page it results in a product not found. I'm sure I've missed something small but I've gone in circles a few time. Again, it works properly all over the site but NOT in the featured products on the index page. Related products elsewhere even work properly.

Any guidance welcome.

Submitted by support on Wed, 2010-04-28 13:23

Hi Steph,

Double check in any Featured Products code that you may have changed in index.php that the links are being generated using $product["normalised_name"] (the URL safe version) and not $product["name"], as there are various modifications in the forum that will relate to the original version of Price Tapestry that did not have separate values...

If you're not sure, if you could email me your index.php and html/featured.php i'll check it out for you...

Cheers,
David.

Submitted by GemViper on Wed, 2010-04-28 13:58

Well that was easy, and yes I've made a couple of the useful mods found elsewhere in the forums without the normalised_name :-)

It worked on other pages because productHREF is used differently.

Thanks again David, your product support is impressive!