Skip to content

Instantly share code, notes, and snippets.

@sshibani
Created December 29, 2015 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshibani/cd32b9ffe4a147c68a01 to your computer and use it in GitHub Desktop.
Save sshibani/cd32b9ffe4a147c68a01 to your computer and use it in GitHub Desktop.
mvc route for dd4t
routes.MapRoute(
name: "TridionPage",
url: "{*PageUrl}",
defaults: new { controller = "Page", action = "Page" }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment