Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
Solved this by override in Global.asax.cs on Register Routes.
href in edit mode: "/collection/search/321"
Global:
protected override void RegisterRoutes(RouteCollection routes)
        {
            base.RegisterRoutes(routes);
            routes.MapRoute("collection/search/",
                            "collection/search/{*path}",
                            new { controller = "Redirect", action = "Index", path = UrlParameter.Optional });
        }
In my RedirectController I redirect to my search page path including the id parameter I need for my search.
    
    
    
When adding a link containing a query parameter to an internal page in html view in the editor, on save the url is converted so that it breaks the correct link. Example:
href set to: "/collection/search?id=321"
on save href becomes: "/EPiServer/CMS/Content/collection/search,,963/?epieditmode=False"
in published page view href is: "/collection/search"
How do I retain the url parameter? I need the parameter to load a result from a large json file.
Thanks for any ideas / potential work arounds.