Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Back in the days (say Umbraco v7 I think), I had this partial view to include to help me debug stuff.
It was pretty simple and it just showed all possible routes
var routes = RouteTable.Routes;
foreach (var route in routes)
var r = (System.Web.Routing.Route)route;
string divider = "Api";
string newR = r.Url.ToString();
string collected = newR.Replace(divider, "<span style='color:white; background-color:Fuchsia;'>" + divider + "</span>");
Now, trying to make a site in Umbraco v12 I ended up in the very same situation where I needed this partial view. But it doesn't work anymore. I tried Google Fu for a couple of hours but couldn't find anything.
My main problem is where to find RouteTable.Routes. I know that it is in the System.Web.Routing but that isn't a part of my installation I guess (I use the Umbraco Project Template for VS2022 to debug and deploy).
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted