Copied to clipboard

Flag this post as spam?

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


  • Simon 12 posts 43 karma points
    Sep 20, 2013 @ 09:10
    Simon
    0

    MVC Route Hijacking

    Hi Guys,

    Just been reading this article in the documentation and think it's exactly what I need:

    http://our.umbraco.org/documentation/Reference/Mvc/custom-controllers

    When using the route hijacking approach is it possible to access the query string or even better, bind a value to the hijacked action from the previous Umbraco page?

    Hope this made sense!

    Cheers,

    Simon

  • Charles Afford 1163 posts 1709 karma points
    Sep 28, 2013 @ 22:58
    Charles Afford
    0

    When you say the previouse page?  Is that the page that caused the hijacked route?  If so you can just use URL referer (That will get you the url)

    Yes you can access the query string, i dont see why not.  

    HttpContext.Current.Request is what you need :)

Please Sign in or register to post replies

Write your reply to:

Draft