View Single Post
  #13  
Old 06-17-2015, 08:48 AM
 
bob@n-flatables bob@n-flatables is offline
 

Member
  
Join Date: Nov 2012
Posts: 26
 

Default Re: Clean URLs in 5.2.5

Quote:
Originally Posted by tony_sologubov
@mohammadUMAR,

1) I just talked to the team and we come up with the following solution for SEO-friendly URLs:

We will remove category_id parameter from the URL if a product is assigned to a single category. If it is assigned to multiple categories, this parameter (category_id) will still be added in order to allow breadcrumbs and next/previous product links work properly.


Tony

I don't think this is the best approach. Perhaps instead there should be a primary category, and the additional categories.

For instance, we have a product that is primarily associated with a single category. However, it is also in a category for products approved for a certain geographical region. The primary category should create the cleanURL, but that product should be able to be accessed from additional categories.

It's very rare we have a product in only one category.

Before 5.2.5 it use to dynamically assign a URL based on whatever category it was accessed from. Not sure if this is best practice, but it was far more user-friendly.
__________________
X-cart v 5.2
Reply With Quote