World is now on Opti ID! Learn more
AI OnAI Off
World is now on Opti ID! Learn more
Try in EPiServerFramework configuration section to use the virtualPathMappings element to override it instead. Make sure the VirtualPathMappedProvider is in the list as well.
<virtualPathMappings> <add url="util/logout.aspx" mappedUrl="/Accont/Logout" /> </virtualPathMappings>
Hope this helps
Frederik
Frederik thanks for your answer.
I've added this provider under virtualPathProviders
<add name="CustomUrlMapping" type="EPiServer.Web.Hosting.VirtualPathMappedProvider, EPiServer" />
then
<virtualPathMappings>
<add url="~/util/logout.aspx" mappedUrl="~/logout.aspx" />
</virtualPathMappings>
It seems to work only if the file extension is the same though.
Is there anything else I can override to use an MVC route?
Thanks.
Hi,
I'm trying to override the default logout url.
I've added a new route to the route collection:
routes.MapRoute("Logout", "util/logout.aspx", new { action = "Logout", controller = "Account" });
Any clues why it is not working?
Thanks,
Luca