Copied to clipboard

Flag this post as spam?

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


  • Jon 38 posts 157 karma points
    Mar 10, 2015 @ 15:09
    Jon
    0

    Redirecting Umbraco Page Request

    Is there a way within the Umbraco framework to get any requests for Umbraco pages and be able to perform some logic from which I could then redirect?

    I could use the BeginRequest within a HttpModule but then I would need to start filtering for css/javascript/etc requests which I don't want to do. I only want requests that are for pages in the Umbraco CMS.

    Thanks,
    Jon

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 10, 2015 @ 15:11
    Jan Skovgaard
    0

    Hi Jon

    What kind of logic do you need to make before doing the redirect? What is the scenario?

    /Jan

  • Jon 38 posts 157 karma points
    Mar 10, 2015 @ 18:34
    Jon
    0

    Hi Jan,

    I was asking generally as it's something I'd like to know how to do with Umbraco.

    In this instance I'm making a single page website which uses HTML5 to manipulate the URL without a page load. This works fine but if I then refresh the page it obviously is looking for the actual URL within Umbraco where I want it to always load the home page. For example, I change the URL to /contact with javascript. Then I press reload. This then tries to load the contact page. I want to intercept this and always load the home page.

    As I said though, I would like to know if there is some way to intercept Umbraco requests.

    Thanks,
    Jon

  • Jon 38 posts 157 karma points
    Mar 11, 2015 @ 17:33
    Jon
    0

    Anyone got any ideas here? Or has anyone built single page sites in Umbraco like this?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Mar 12, 2015 @ 08:38
    Dave Woestenborghs
    0

    Hi Jon,

    Haven't tried this my self but I have bookmarked some articles about this.

    I don't know if they can help you solve your specific problem, but they can probably point you in the right direction

    http://24days.in/umbraco/2014/angular-powered-frontend/

    http://www.nibble.be/?p=224

    http://kpensar.com/blog/2014/02/17/umbraco-hearts-angular-a-series-on-building-an-spa-application/

    Dave

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies