Thank you for contacting support.
You can change the Url of product detail in two ways -
1)If you want to remove the published date from the url of the product you can go to Administration->Settings->Advanced->Catalog->Providers->OpenAccessProvider->Parameters and add a new parameter the key of the new parameter will be "urlFormat
" and the value will be "/[UrlName]
Please note that already existing products will not get the route by default. You will have to publish the exisisting products again.
2)You can add a class to your project and make the class inherit from "OpenAccessCatalogDataProvider
". You can override the below methods to get custom routing.
Please note that you will need to change ProviderType
of catalog (can be changed at Administration->Settings->Advanced->Catalog->Providers->OpenAccessProvider) to have your custom class name.
format, T item)
//Use any mechanism to get the route key
.GetUrlPart<T>(key, format, item);
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>