SaaS CMS has officially launched! Learn more now.

url Routes help needed



I am new to epi server cms. I am using mvc.  currently learning from

however, I would like to know which controller,view a url is pointing to.

for example 

http://localhost:1234/Home/Index // this tell me home= controller and Index = action.

below routing tables I understand.

public static void RegisterRoutes(RouteCollection routes)

                "Default",                                              // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults




Apr 20, 2016 7:37


So what is your question? You just answered it yourself in your post :) /home/index maps to HomeController and the action Index.

Apr 20, 2016 13:45

routing in episerver is a bit more trickier compared to vanilla mvc. for instance, you might have "/this/is/a/page" map to HomeController that is located directly under /Controllers directory. EPiServer tries to understand incoming request, find matching page (actually content) and tries to invoke corresponding handler (controller in this case) for that request.

Apr 20, 2016 20:21

There was actually a blog post published recently about routing in Episerver

Apr 20, 2016 20:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.