A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
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