Problem with dashes and hyphens in Product or Category names

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
steve4000
Posts: 6
Joined: Thu Mar 04, 2010 4:34 am

Problem with dashes and hyphens in Product or Category names

Post by steve4000 »

Every time I add a product category or name that contains a dash in it, the url is replaced with %252d. I don't see why dashes should be replaced with that ugly set of characters. Does anyone know how to fix it?
Painstik
Posts: 122
Joined: Sun Jul 19, 2009 1:19 pm
Location: Croatia

Re: Problem with dashes and hyphens in Product or Category names

Post by Painstik »

When you URL encode "-" char, you'll get %2d. And "%" encoded is %25. So you get %252d instead of "-".

That kind of URL encoding is very good for sem, cos you don't have to worry if search engine is going to be able to properly index your domain.

For this char is not necessary to url encode, but it's necessery to encode special chars like "(", "{" and so on...
Need custom coding for Interspire Shopping Cart? Contact me
Post Reply