View Single Post
  #14  
Old 06-18-2015, 02:51 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Clean URLs in 5.2.5

Quote:
Originally Posted by bob@n-flatables
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.

First of all, you can return prior-5.2.5 functionality if you go to etc/config.php file and define the use_canonical_urls_only option as Off, i.e.
Code:
use_canonical_urls_only = Off

Could you please let me know why is the approach of adding category_id parameter is bad for you? What is particularly bad in it?

Thank you.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote