bisscomm / refinerycms-products

Products extension for Refinery CMS
MIT License
9 stars 11 forks source link

SEO urls for products #2

Open duarme opened 9 years ago

duarme commented 9 years ago

Wouldn't it be better for the products to have routes such as "example.com/category/subcategory/product" ? Google recommends "speaking urls".

Finally, I't would be nice if "example.com/category/subcategory" redirected to "example.com/categories/category/subcategory".

bricesanchez commented 9 years ago

@darmens, it could be interesting for the product to have the whole path with the category but i'm not sure how to implement this feature.

duarme commented 9 years ago

I implemented it here: https://github.com/darmens/refinerycms-seoblog (but there is no category nesting yet), also it is how the nested pages path works. You should start declaring a route like this one: https://github.com/darmens/refinerycms-seoblog/blob/master/config/routes.rb#L6 But, again, it would work without nested categories, I'm still working on those.