You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2012/11/10 10:01:47 UTC

Re: Categories links not working in case of alternative URL if the category id is a single word.

Sorry Rshekhar,

I tried your change but it does not work
Also it would have been better to create a Jira for history sake, follow https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices

Jacques

From: "rshekhar.in" <rs...@gmail.com>
> Categories links not working in case of alternative URL if the category id is
> a single word.
> 
> For example , when using
> http://demo-trunk.ofbiz.apache.org/ecommerce/gismos-gismos-c
> 
> i.e. your alternative url is gismos and your product category id is gismos,
> then it is not able to resolve the category id.
> 
> A patch is attached...
> 
> changed this line
> /productCategoryStr = alternativeUrl.replace(textData + "-", "");/
> to
> /productCategoryStr = alternativeUrl.replaceFirst(textData + "-", "");/
> 
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Categories-links-not-working-in-case-of-alternative-URL-if-the-category-id-is-a-single-word-tp4633554.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.