Topic page url

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi,

I am using Nop 2.60 version, in topics page URL is like this www.xyz.com/t/privacypolicy
But I don't want to display
/t/ , I want to display like this www.xyz.com/privacypolicy, where I can change.

** As per my idea I can change in routeprovider page URL is t/{systemname} , I removed t/ but I didn't checkout the page, when I click checkout it's redirected to home page.

Thanks in advance
Venkat Goud.
5 years ago
Hi,

Have you checked it in cart page where it shows checkbox for privacy policy? It must be fixed in ASPX page in your case. So you need to change there as well..

Thank you,
Atul
5 years ago
Hi Atul,

First thanks for your replay,

Not only "www.xyz.com/privacypolicy", privacy policy it's just example while creating every topic page the URL is build with site url/t/systemname right, in our RouteProvider.cs page having below mention code in Nop2.60 version
example :
                            routes.MapLocalizedRoute("Topic",
                            "t/{SystemName}",
                            new { controller = "Topic", action = "TopicDetails" },
                            new[] { "Nop.Web.Controllers" });

instead of I removed
                            routes.MapLocalizedRoute("Topic",
                            "{SystemName}",
                            new { controller = "Topic", action = "TopicDetails" },
                            new[] { "Nop.Web.Controllers" });

in this case in cart page when I click checkout button it's redirected to home page why because it's expecting the cache it's not available so it's redirected to the homepage.

I think now you have a clear explanation.

Thanks,
Venkat Goud.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.