Copied to clipboard

Flag this post as spam?

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


  • Aleksander 45 posts 205 karma points
    Jun 03, 2019 @ 06:31
    Aleksander
    0

    umbracoRedirect in v8?

    Hi.

    In my umbraco 8 project, i've setup a content picker with the alias umbracoRedirect, as described here: https://our.umbraco.com/documentation/reference/routing/routing-properties to create internal temporary redirects. It works flawlessly in Umbraco 7, but it seems not to work in umbraco 8.

    Have any of you guys got it working ? Is it a feature they forgot / removed in 8 ?

    Cheers

  • Aleksander 45 posts 205 karma points
    Jun 03, 2019 @ 07:35
    Aleksander
    0

    Now it works - without changing anything... Not sure what happened or if me and my colleague can recreate the error.

  • Marc Goodson 1415 posts 9546 karma points MVP 5x c-trib
    Jun 03, 2019 @ 09:25
    Marc Goodson
    1

    Hi Aleksander

    Just had a quick look and it's still in V8

    https://github.com/umbraco/Umbraco-CMS/blob/a822e187199ded91135148c06f5dd0c93efef3fb/src/Umbraco.Web/Routing/PublishedRouter.cs#L773

    Not sure why you would see the quirkiness.

    regards

    Marc

  • Aleksander 45 posts 205 karma points
    Jun 03, 2019 @ 10:32
    Aleksander
    0

    Thanks Marc,

    I was too quick to write this post - this morning it was briefly not working, thats when i made this post.

    When i pulled in the Umbraco.Web source code it was working again, during this i had only implemented our own RoleProvider, which shouldn't affect anything - so i guess it was just a brief bug.

    But thanks anyway for replying :)

  • Jon 53 posts 127 karma points
    Dec 23, 2020 @ 13:59
    Jon
    0

    Is there a way to use umbracoRedirect with a QueryString? I would like to redirect to a search page with a search query in the URL. Is this possible?

  • Søren Mastrup 118 posts 545 karma points c-trib
    Dec 23, 2020 @ 23:22
    Søren Mastrup
    0

    I would suggest using Skybrud.Umbraco.Redirects for that.

  • Jon 53 posts 127 karma points
    Dec 24, 2020 @ 09:13
    Jon
    0

    Hi, I thought that one didn't do redirects internally. I thought it only redirected to an external URL?

    Jon

  • Søren Mastrup 118 posts 545 karma points c-trib
    Dec 24, 2020 @ 11:42
    Søren Mastrup
    0

    Oh, sorry 🤦🏼‍♂️ I read it as a 301 redirect.

  • Simon Hartfield 4 posts 85 karma points
    25 days ago
    Simon Hartfield
    1

    Bit of a thread necro here but it seems that the umbracoRedirect field won't take effect until after a restart. Anyone finding this thread via Google, touch your web.config before tearing your hair out over this field not working.

Please Sign in or register to post replies

Write your reply to:

Draft