Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for product URLs with a category in path (configurable) #385

Closed
mariannk opened this issue Jan 18, 2016 · 2 comments
Closed

Comments

@mariannk
Copy link

mariannk commented Jan 18, 2016

This way, product URLs could be /category-slug-name/product-slug-name. If a product has several categories in the breadcrumb, then use only the last one (the most nested). Also, note that sometimes a product could be with any categories (in this case always use /product-slug-name)

Let's make it configurable - the current way (e.g. /product-slug-name) or a new one (/category-slug-name/product-slug-name). Add an appropriate setting to the admin area

Some notes (to be investigated):

  1. The workaround for that is for GenericPathRoute to map to {*generic_name} rather than {generic_name} I believe.
  2. Please note after addition of such custom route ALL controllers and routes should be also registered. For example, \somecontroller\somemethod. Otherwise, customers will be redirected to this new {*generic_name} route handler. Also, think about the processing of 404 errors for such cases. Some investigation is required.
  3. Each missing static resource (like /content/files/missingfile.pdf) is also caught by GenericPathRoute, it's not a big problem, but I'm not sure of the consequences.

Also see - http://www.nopcommerce.com/boards/t/29637/performance-optimization-needed-nopcommerce-is-too-slow-.aspx?p=7#123632

@rudgr
Copy link
Contributor

rudgr commented Dec 13, 2017

vote++;

@MikeDub
Copy link

MikeDub commented Jan 22, 2020

I initially thought I wanted a /category/product route too.
However I remember that NopCommerce supports multiple categories,
so would /Brand/Product be a more reliable suggestion?

Maybe ideally if we had a route such as this: /Brand/Category?/Product, where it would only display the category if it was the only category the product was in.

Thoughts?

@AndreiMaz AndreiMaz changed the title Add support for / char in search engine friendly names Add support for product URLs with category breadcrumb in path (configurable) Nov 13, 2021
@AndreiMaz AndreiMaz modified the milestones: Version 4.50, Version 4.60 Nov 13, 2021
@AndreiMaz AndreiMaz changed the title Add support for product URLs with category breadcrumb in path (configurable) Add support for product URLs with a category in path (configurable) Nov 30, 2021
@RomanovM RomanovM self-assigned this May 20, 2022
RomanovM added a commit that referenced this issue May 20, 2022
RomanovM added a commit that referenced this issue May 20, 2022
RomanovM added a commit that referenced this issue Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants