How to change url...

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi,
     In my application I changed the name 'MANUFACTURERS' to 'RETAILERS'...Now I want to change the same in url also...

Ex: https://www.nopcommerce.com/manufacturer/all    This should be like this : https://www.nopcommerce.com/retailer/all

Any one please let me know 'How to change the url'....
10 years ago
Hi,

you can change it in the Nop.Web\Infrastructure\RouteProvider.cs:

change

            routes.MapLocalizedRoute("ManufacturerList",
                            "manufacturer/all/",
                            new { controller = "Catalog", action = "ManufacturerAll" },
                            new[] { "Nop.Web.Controllers" });

to

            routes.MapLocalizedRoute("ManufacturerList",
                            "retailer/all/",
                            new { controller = "Catalog", action = "ManufacturerAll" },
                            new[] { "Nop.Web.Controllers" });
10 years ago
That worked for me.

Thanks Mariann!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.