AI OnAI Off
You should set the character map on UrlSegmentOptions instead, see https://world.episerver.com/documentation/developer-guides/CMS/routing/internationalized-resource-identifiers-iris/
Hi Johan,
Thanks for your answer.
I've tried to make it working on the UrlSegmentOptions, but till so far it doesn't work.
Could you have a look at the code below and see anything I'm doing wrong?
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))] public class IRIConfigurationModule : IConfigurableModule { public void ConfigureContainer(ServiceConfigurationContext context) { var options = new UrlSegmentOptions(); options.CharacterMap.Add('Š', 'S'); context.Services.AddSingleton<UrlSegmentOptions>(options); } public void Initialize(InitializationEngine context) { } public void Uninitialize(InitializationEngine context) { } }
Thanks in advance!
Grtz Sander
Hello,
I've updated my site to Episerver 10 and now I got an error at the line below:
I know that the UrlSegment have been replaced with IUrlSegmentCreator/IUrlSegmentLocator/IUrlSegmentGenerator, but how can I replace above code to maken it work?
Hopefully someone can help me.
Kind regards,
Sander van de Pas