UrlTracker icon indicating copy to clipboard operation
UrlTracker copied to clipboard

Redirects for a custom route don't appear to work

Open jeremyjayg opened this issue 8 years ago • 1 comments

We have some additional routes added to our RouteTable that go to a custom controller. It appears that adding redirects that would be otherwise handled by those custom routes don't work.

For instance, we have a route that looks kind of like

RouteTable.Routes.MapUmbracoRoute( "CustomSearch", "{parameter1}/{parameter2}/{parameter3}-{parameter4}", new { controller = "CustomController", action = "CustomAction", parameter1= UrlParameter.Optional, parameter2= UrlParameter.Optional, parameter3= UrlParameter.Optional, parameter4 = UrlParameter.Optional }, new UmbracoVirtualNodeByIdRouteHandler(Helpers.getPageId("CustomPageId")) );

It seems like this route is preventing UrlTracker from having any knowledge of a redirect that we added for an old page that uses this controller but that we now want to redirect somewhere else.

Does anyone know if this is this a limitation of UrlTracker, or is it possible to set up custom routes to controllers that can still be intercepted by UrlTracker if it recognizes a configured redirect?

jeremyjayg avatar Feb 17 '17 17:02 jeremyjayg

I'm not too sure I follow your issue here. You've created a custom route, and are trying to redirect to it?

daniel-chenery avatar Sep 05 '17 18:09 daniel-chenery