[
https://issues.apache.org/jira/browse/OFBIZ-3563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878382#action_12878382
]
Scott Gray commented on OFBIZ-3563:
-----------------------------------
product ids are always prepended with a p_ when generated by the servlet so I'm
not sure why the it is treating the last path element as a possible product id
when p_ is missing from it.
We should be able to fix this easily enough by always treating the last path
element as a category id if it isn't prepended with p_ (let's hope no one ever
creates a category starting with p_). If p_ is missing and the id doesn't
resolve to a category then we could allow it through as a product id.
An alternative solution could be to have two mount points for the servlet:
products for products and categories for categories, that way there will never
be any ambiguity.
Examples:
http://domain/ecommerce/products/productId
http://domain/ecommerce/categories/categoryId
For backwards SEO compatibility we could redirect any /products/categoryId urls
to the new categories url.
> Creating a category with an ID (manually or automatically) that matches an
> existing productID will show the unrelated product when enter into the
> category on the 'Browse category' of the Ecommerce application.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-3563
> URL: https://issues.apache.org/jira/browse/OFBIZ-3563
> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/ecommerce
> Affects Versions: SVN trunk
> Environment: Ubuntu 8.04
> Reporter: Jonatan Soto
>
> Steps to reproduce it:
> - Create a new category and set the ID manually that corresponds with an
> existing productID.
> - Go to the Ecommerce app and enter in the category has been created.
> - The product with the same ID will be show but it isn't really related to
> this category.
> As Jacques noted on the ML, it could be related to an URL improvement (SEO)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.