Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
it's probably firing on the homepage too creating an infinite loop?
Hi Rik
You're right, all sorted.
is working on a reply...
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.
Continue discussion
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
it's probably firing on the homepage too creating an infinite loop?
Hi Rik
You're right, all sorted.
Thanks
Eddie
is working on a reply...
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.