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.
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?
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)...
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?
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:
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
Anyone have a solution to this? I can't even see a dashboard for it any more.
UmbracoSettings.config - disableRedirectUrlTracking attribute
e.g.
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?
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
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?
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
Have added a PR to address this:
https://github.com/umbraco/Umbraco-CMS/pull/7761
so one day it might work as expected!
is working on a reply...