Hi.
We are using ContentRoute on IInitializableModule to remove trailingslash for our site.
ContentRoute.UseTrailingSlash = false;
After the update to EPiServer 10 this setting is obsolete.
I'm told that "Setting should be set on RoutingOptions instance retrevied from IOC" and i have done some test with this but can't make it work.
Do anyone have a POC or any idea how to make it work?
What i want to achive: www.xxx.se/news/ should be www.xxx.se/news
Best Regards
Solved it - sharing the code below if anyone else has the same problem.
var routingOptions = ServiceLocator.Current.GetInstance<RoutingOptions>(); routingOptions.UseTrailingSlash = false;
Hi.
We are using ContentRoute on IInitializableModule to remove trailingslash for our site.
After the update to EPiServer 10 this setting is obsolete.
I'm told that "Setting should be set on RoutingOptions instance retrevied from IOC" and i have done some test with this but can't make it work.
Do anyone have a POC or any idea how to make it work?
What i want to achive: www.xxx.se/news/ should be www.xxx.se/news
Best Regards