Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Oct 18, 2010 @ 09:43
    Eddie Foreman
    0

    response redirect to home page

    Hi All

    Sure this is a simple one, but I cannot work it out.

    Looking to redirect to the home page from a script tag in the masterpage template if a condtion is true.

    have tried the following, but no joy.

    Response.Redirect("~/");

    Response.Redirect("~/default.aspx");

    Response.Redirect(umbraco.library.NiceUrl(Int32.Parse("1057"))); - 1057 home page id

    Each time I get an error stating that the page isn't redirecting properly. 

    Thanks

    Eddie

  • Rik Helsen 670 posts 873 karma points
    Oct 18, 2010 @ 10:38
    Rik Helsen
    0

    it's probably firing on the homepage too creating an infinite loop?

  • Eddie Foreman 215 posts 288 karma points
    Oct 18, 2010 @ 11:40
    Eddie Foreman
    0

    Hi Rik

    You're right, all sorted.

    Thanks

    Eddie

     

  • 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