Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Paul Sørensen 302 posts 648 karma points
    Aug 04, 2014 @ 23:11
    Paul Sørensen

    Routing in custom sections



    version 7

    I have a multi level tree with nodes of different types. I try to set up the routing like this

    "myapp/msTree/view/course/12" to hit course.html with id=12

    The html file is located in 

    backoffice\msTree\view but all I get when I click the node is the main page for the content section. Fiddler dies not show anything so I'm stuck.Would have been nice with a 404 showing what was requested. I looked at Eventcalendar but this project seems to put everything in one folder.

    /Paul S

  • Jeroen Breuer 4861 posts 12129 karma points MVP 3x admin c-trib
    Aug 05, 2014 @ 12:59
  • MrT 1 post 21 karma points
    Mar 27, 2015 @ 17:52

    hi, in umbraco 7.2.4 where do i put my mvc routing into as some says in global asax.cs others in IApplicationHandler ?? which is it and what is the difference? Thanks

  • Mehul Gajjar 48 posts 172 karma points
    May 05, 2015 @ 10:08
    Mehul Gajjar


    I have done the routing in umbraco 7.2.4 as creating MyStartupHandler.cs class in App_Code like below

        public class MyStartupHandler : IApplicationEventHandler
            public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
                    name: "Home",
                    url: "Home/{*catchall}",
                    defaults: new { controller = "Home", action = "Index" }

    Above code is working fine.

    Hope this is usefull


    Mehul Gajjar.

Please Sign in or register to post replies

Write your reply to: