I am working on a project that needs to grab the actual URL and use it in the route itself. Everything I am seeing, reading and testing allows the route to grab the items after the site URL. This is what I have tried and each time it simply say the site is blank (which is probably because of the default of blank). Can you throw me any bones on allowing the route to also utilize the root URL? The goal is one website that will process the URL and route me to different guts once inside of the View.
Here is code I have tried but no luck outside of localhost
routes.MapRoute(
"PageRouter",
"{site}/{*url}",
new { controller = "PageRouter", action = "RoutePage", site = "", url = "" }
);
Your help is greatly appreciated. Thanks in advance