Copied to clipboard

Flag this post as spam?

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


  • Martin Griffiths 826 posts 1269 karma points c-trib
    Feb 04, 2015 @ 15:08
    Martin Griffiths
    0

    Ambiguous match found. Route Hijacking

    I'm getting an unexpected error when hijacking routes in Umbraco 6.1.6.

    I've created my custom controller as shown in the docs but I cannot get the "default" ActionResult Index() to fire for pages where I haven't specified the template.

    Instead I get this unhelpful error...

    AmbiguousMatchException: Ambiguous match found.

    Is this because I have pages matching the doctype, but DO have valid templates applied to them? I was hoping that I wouldn't have to specify Actions for every template on a given doctype and Index act as the override if the template(s) are not specified in my controller class. Maybe i've got this wrong.

    Can someone clarify?

    Thanks in advance

    Martin

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 04, 2015 @ 15:26
    Dennis Aaen
    0

    Hi Martin,

    I can see in the issue tracker that there is an issue could it be this that you are running into http://issues.umbraco.org/issue/U4-3675, also try to see this post http://our.umbraco.org/forum/developers/extending-umbraco/46357-Ambiguous-match-found-using-T4MVC,-Umbraco-6-and-hijacking-routes

    Hope this can help you.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft