Copied to clipboard

Flag this post as spam?

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


  • Jarno 21 posts 152 karma points
    Feb 19, 2020 @ 09:50
    Jarno
    0

    Umbraco 8 disable url tracker

    Hi all,

    I want to disable the url tracker in v8. In v7 it was possible to set disableRedirectUrlTracking on false in the umbraco.config. This doesn't work in v8.

    https://our.umbraco.com/documentation/reference/routing/URL-Tracking/

    Does anybody has an idea how this is working in v8?

    Jarno

  • Dan Evans 631 posts 1018 karma points
    Mar 04, 2020 @ 19:07
    Dan Evans
    0

    Anyone have a solution to this? I can't even see a dashboard for it any more.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Mar 04, 2020 @ 20:30
    Jeavon Leopold
    0

    UmbracoSettings.config - disableRedirectUrlTracking attribute

    e.g.

      <web.routing trySkipIisCustomErrors="true" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" validateAlternativeTemplates="false" disableFindContentByIdPath="false" umbracoApplicationUrl="" disableRedirectUrlTracking="true">
    
  • Dan Evans 631 posts 1018 karma points
    Mar 04, 2020 @ 20:41
    Dan Evans
    0

    I thought this also but the option is not in the settings file, nor is it listed as a an option in the comments of the settings file. When i add it redirects still happen.

    Also there used to be a tab under content listing all redirects and an option to disable it but that is no longer there. Where is it?

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Mar 04, 2020 @ 21:07
    Marc Goodson
    0

    Hi Dan

    The redirects are executed by the 'ContentFinderByRedirectUrl' Content Finder implementation.

    https://github.com/umbraco/Umbraco-CMS/blob/3bfd9b71e290354744d677440983ecd06c5c0788/src/Umbraco.Web/Routing/ContentFinderByRedirectUrl.cs

    You could create a component during composition that removes this particular content finder from the content finders collection.. That would definitely stop the redirects from happening (unless the 301 instruction is cached in a visitors browser)...

    https://our.umbraco.com/Documentation/Reference/Routing/Request-Pipeline/IContentFinder#adding-and-removing-icontentfinders

    Regards

    Marc

  • Dan Evans 631 posts 1018 karma points
    Mar 04, 2020 @ 23:13
    Dan Evans
    0

    So there's no out-of-the-box solution to disable it and no GUI for it? Seems like a backwards step. What if you are using a 3rd party plugin like SEO Checker as you need to be able to create manual redirects as well?

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Mar 05, 2020 @ 07:17
    Marc Goodson
    1

    Hi Dan

    The setting is the one that Jeavon mentions: 'disableRedirectUrlTracking' in UmbracoSettings.config routing section...

    ... however there is something that has been missed in porting across this functionality to V8...

    That setting 'will' turn off redirect tracking, eg no new redirects should be created, there is a check for the setting before handling events that track changes to the Url, so that part looks to be turned off by the setting.

    However the second part, the registerring of the ContentFinder to perform the Redirects, also 'used' to check this setting:

    https://github.com/umbraco/Umbraco-CMS/blob/efbe97a01da63d34a505dad8b3e8ae1fe0729621/src/Umbraco.Web/Routing/RedirectTrackingEventHandler.cs

    but in porting code across from ApplicationEventHandlers to Components,

    The check is no longer made:

    https://github.com/umbraco/Umbraco-CMS/blob/c63af8e1619a92b462b2c053019a99e799574a3d/src/Umbraco.Web/Runtime/WebInitialComposer.cs

    My suggestion above is how to make it work 'until' this is reported and fixed!!

    regards

    Marc

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Mar 05, 2020 @ 09:29
    Marc Goodson
    0

    Have added a PR to address this:

    https://github.com/umbraco/Umbraco-CMS/pull/7761

    so one day it might work as expected!

  • 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