I have been tasked with an assignment, as per advice from the marketing
dept. (SEO friendly url) where I would need to replace the url structure
Current URL Washing Machine is:
Custom URL for the same page should be: (as per bread-crumbs)
Where HomeEssentials > Cleaning&Drying > WashingMachine is the bread
crumbs, and it has the parent child menu structure.
This has to happen at every product category, and for ex,
product?product_category_id=35#Football, in terms of breadcrumbs :-
Home > Sports & Leisure > Football.
(leading to a url like -
I have had a look at friendly url gem, and stubs, and changing to_param
in the model , but that effectively replaces the id with the title/name,
or any parameter we set. However it does not replace the entire url, in
the manner as expected.
(the answer probably lies in changing the routes file, (mapping, etc)
but have not received much success in my search so far).
Currently, the request is being generated from the home page, into the -
products controller and the parameter product category id is being
Any suggestion / help in this regards would be highly appreciated.