I don't understand how custom routes in Umbraco work. How can I access a controller's action through a URL from another website? Basically, I have another website for customer support from which employees should be able to access a customer's account with the customer's email only. The thing is I can't get the various tokens and the email to a controller.
The url I am testing with looks like this: host/login/externallogin/0000/0000/0000/[email protected]
I changed the controller name (can't believe I left 'controller' at the end!), but it still doesn't work. I added the reserved path for '~/login' and all it changed it that instead of my 404 page, I get 'No physical template file was found for template externallogin' (my URL being 'host/login/externallogin/...')
Also, I don;t get how the handler works when using 'RouteTable.Routes.MapUmbracoRoute' instead of 'RouteTable.Routes.MapRoute'
External Url to Controller
I don't understand how custom routes in Umbraco work. How can I access a controller's action through a URL from another website? Basically, I have another website for customer support from which employees should be able to access a customer's account with the customer's email only. The thing is I can't get the various tokens and the email to a controller.
The url I am testing with looks like this: host/login/externallogin/0000/0000/0000/[email protected]
Here is my custom route :
Here the controller I made, I commented out almost everything to at least reach a breakpoint at the beginning of the controller
Could you try:
?
might be you also have to update "umbracoReservedPaths".
I changed the controller name (can't believe I left 'controller' at the end!), but it still doesn't work. I added the reserved path for '~/login' and all it changed it that instead of my 404 page, I get 'No physical template file was found for template externallogin' (my URL being 'host/login/externallogin/...')
Also, I don;t get how the handler works when using 'RouteTable.Routes.MapUmbracoRoute' instead of 'RouteTable.Routes.MapRoute'
is working on a reply...