Copied to clipboard

Flag this post as spam?

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


  • Tor Langlo 191 posts 554 karma points
    Nov 05, 2019 @ 19:16
    Tor Langlo
    1

    Redirects Viewer works well, but lacks documentation...

    I just wanted to post this to help other users a bit. Redirects Viewer is a package which allows you to add redirects to your site, e.g. if you earlier forgot to enable the built-in redirects feature, or just want to manage redirects manually.

    I have successfully installed Redirects Viewer v1.3 on my Umbraco 7.15.3 Cloud installation.

    Due to the lack of documentation, and screenshots being for v8, it took me a while to find out exactly how to use it.

    1. In the Developer section, create a new Data Type, give it an appropriate name, e.g. "Redirects Viewer", choose the property editor with the same name, and set the permissions to your liking (admins have full access).

    2. Go to the Settings section. On the doc types for the pages which you want to redirect to, add a new property, give it an appropriate name, e.g. "Allow Redirects From", and choose the data type you created above. A composite doc type which you're including on many/all pages might also be a good candiate.

    3. Go to the Contents section and select a page which you want to be the target of a redirect, find the property you created, click "Add redirect", and enter the path you are redirecting from. The path should not contain the domain name, and may/may not start with a slash (it doesn't matter).

    4. That's it. Except one gotcha! If you have a site with multiple roots, e.g. one per language/country, and you have not specifically assigned domain names to these roots, the the redirects will not work out of the box. The work around is to add a setting to your web.config: under the <appsettings> element add the following: <add key="Our.Umbraco.RedirectsViewer:IgnoreWildCardDomains" value="true" />, and reload the website.

    Hope this helps! And thanks a lot to Dave Woestenborghs for writing the package!

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 05, 2019 @ 19:49
    Dave Woestenborghs
    0

    Hi Tor

    Thanks for the feedback. Could you add a PR for the package to update the readme with this information

    https://github.com/dawoe/umbraco-redirectsviewer/blob/develop-v7/README.md

    You can do it directly on github if you have a github account.

    Dave

  • Tor Langlo 191 posts 554 karma points
    Nov 06, 2019 @ 18:46
    Tor Langlo
    0

    Hi Dave, I have added a PR with a "How To Use" section in the readme. Hope this helps!

    I noticed the table on the top of the readme links to the v8 version of the package. It might be an option to change that, or at least insert a row linking to the latest v7 nuget package. Right now that seems to be https://www.nuget.org/packages/Our.Umbraco.RedirectsViewer/1.3.0.

    -Tor

  • Mark 14 posts 84 karma points
    Aug 17, 2020 @ 22:52
    Mark
    0

    Hello Tor and community,

    What I am missing here? Using Our.Umbraco.RedirectsViewer -Version 1.3.0

    Step 1 - Developer section, create new Data Type "Redirects Viewer". choose the property editor with the same name, and set the permissions.

    The screenshot below shows the new Data type created.enter image description here

    Step 2 - Settings section. On the doc types for the pages which you want to redirect to, add a new property, give it an appropriate name, e.g. "Allow Redirects From", and choose the data type you created above.

    The Screenshot below show the new property added to blog page enter image description here

    Step 3 - Contents section, select a page which you want to be the target of a redirect, find the property you created, click "Add redirect", and enter the path you are redirecting from.

    The photo below displays the edits made in step 3 enter image description here

    The first item in the image below (/dekliderm/ > /sheer-voice-blog) is the redirect that was just added when I followed these instructions but it does not work. The other redirects listed here were there prior and are not being used but do work. enter image description here Both pages /dekliderm/ and /sheer-voice-blog/ exist and are published.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 18, 2020 @ 06:57
    Dave Woestenborghs
    0

    Hi Mark,

    Is there a page published that has the url /dekliderm/ ?

    Dave

  • Mark 14 posts 84 karma points
    Aug 18, 2020 @ 13:03
    Mark
    0

    Yes

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 18, 2020 @ 13:45
    Dave Woestenborghs
    0

    Than the build in redirects from umbraco won't kick in. The redirect will only be used when the url visited is not a published page.

    Dave

  • Mark 14 posts 84 karma points
    Aug 18, 2020 @ 13:50
    Mark
    0

    So you are saying that redirects viewer will only work in this case if the content assigned to dekliderm URL is unpublished?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 18, 2020 @ 13:59
    Dave Woestenborghs
    0

    Hi Mark.

    My package uses the built-in redirect tracker of Umbraco. But because this only usable from a dashboard and not a content item I created this package. So you can see the redirects from the page you are on. As a bonus I added functionality to add your own redirects to the umbraco redirect tracker.

    But the umbraco redirect tracker only kicks in when it does not find a published page matching the url.

    So you have 2 options.

    • add the redirect on iis level
    • use a umbracoRedirect properpty (https://our.umbraco.com/Documentation/Reference/Routing/routing-properties#umbracoredirect)
  • Martin Griffiths 826 posts 1269 karma points c-trib
    Jan 13, 2021 @ 11:59
    Martin Griffiths
    0

    Hi Dave

    "As a bonus I added functionality to add your own redirects to the umbraco redirect tracker".

    Do you mean the main table itself rather than from a datatype? If so, is it supported in Umbraco 7 & 8?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jan 22, 2021 @ 09:49
    Dave Woestenborghs
    0

    Hi Martin,

    It adds the redirects to the umbracoRedirect table.

    It works both on V8 and V7. Just make sure you download the correct version. V1 is for Umbraco v7 and V2 is for Umbraco V8.

    In V7 you will need to add a property which uses the Redirects viewer datatype. In V8 a content app will be shown.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft