Created
December 29, 2015 12:11
-
-
Save sshibani/cd32b9ffe4a147c68a01 to your computer and use it in GitHub Desktop.
mvc route for dd4t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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