Copied to clipboard

Flag this post as spam?

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


  • Steve Wilkinson 128 posts 187 karma points
    Feb 18, 2014 @ 11:52
    Steve Wilkinson
    0

    uLocalGovMVC and page redirects

    I would like to be able to automatically redirect from a page to another page within the website (or to an external web page).

    I know I could add an extra field to the document type and amend the template to do a redirect if the field had content but is there a neater way such as a package that would do this?

  • Dan Lister 416 posts 1973 karma points c-trib
    Feb 18, 2014 @ 12:01
    Dan Lister
    100

    You could add the umbracoRedirect property alias to your documents type(s). This is a standard Umbraco property and allows editors to redirect pages. You wouldn't need to add any logic to your templates for the redirect to work. See http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracoredirect for more details.

  • Steve Wilkinson 128 posts 187 karma points
    Feb 18, 2014 @ 12:25
    Steve Wilkinson
    0

    That's good. I guess there's two issues really, there's the redirect and also having one page "appear" in two places in the heirachy which I was going to use that for but is there a way to have the page in two places?

  • 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