Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Redirects for a custom route don't appear to work #151

Open
jeremyjayg opened this issue Feb 17, 2017 · 1 comment
Open

Redirects for a custom route don't appear to work #151

jeremyjayg opened this issue Feb 17, 2017 · 1 comment

Comments

@jeremyjayg
Copy link

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?

@daniel-chenery
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants