I'm trying to create a shortcut to an external url. The url is actually a page in the site itself, but I need to add querystring values to it, so I have to make it an external url.
However, when saving the page, the url is converted to a classic url.
1. Copy the friendly url of a page you want to link to. E.g. "http://localhost:55807/about-us/news-events/events/risk-management-in-complex-projects"
2. Edit a page. Go to the Shortcut property. Choose external url. Paste the friendly url.
3. Save and publish the page.
4. Edit the shortcut property again. The url now looks like this: "/Views/Pages/StandardPageTemplate.aspx?id=21"
Also, when viewing the classic url, the page gives a 404. I've heard of similar bugs, but I'm not sure if this is quite the same scenario?
I got in touch with EPiServer support regarding this.
I was told that this behavior is in fact by design, as edit-mode uses classic links.
I got around it by overriding RegisterRoutes() and adding support for classic links as described here:
protected override void RegisterRoutes(System.Web.Routing.RouteCollection routes)
(all though internal-URLs used as external URLs are still changed to classic urls in the Shortcut-property, at least the page won't give a 404 error anymore)