Redirects are not created automatically, Umbraco 7.0.3
Hi. I remember using 301urlTracker earlier on umbraco 4 or 6, and I remember it was creating redirects automatically when any node URL was changed. It is said in current description: "It automatically tracks URL changes, for instance when a node is renamed, and makes sure the old URL will redirect to the new location."
But this is not the case when I install it on my Umbraco 7.0.3 / iisexpress / mssql2012. No records are being added automatically. Logging does not show anything suspicious like errors. Redirecting works for manually created items.
How do I get 301urlTracker to create redirect items automatically?
PS: I also remember being able to add 301urlTracker "widget" to node Properties itself, so I can manage redirects in-place. Have not found info on this in current version. Is this feature discontinued as well?
I can see in sources that it's still supposed to create redirects automatically, but it just does not work.
Code Document.BeforeMove += Document_BeforeMove; Document.BeforePublish += Document_BeforePublish; content.BeforeClearDocumentCache += content_BeforeClearDocumentCache; Document.BeforeDelete += Document_BeforeDelete; Domain.AfterDelete += Domain_AfterDelete; Domain.AfterSave += Domain_AfterSave; Domain.New += Domain_New; is being invoked (even though ApplicationBase is obsolete), but methods/events are never being called.
Have you tried to set "urlTracker:trackingDisabled" to false? It's described in the settings tab of the Url Tracker ("The Url Tracker supports a few settings, which you can use in the appSettings section of your web.config.")...
Hi Vlax, I believe I did. Even though it should not be required because it's enabled by default.
Like I said in the post before, I have debugged it with source code and found a reason it does not work: addon uses legacy events methods which do not fire on documents publish. Now it's just a matter of time Stefan will fix this bug I believe.
Redirects are not created automatically, Umbraco 7.0.3
Hi. I remember using 301urlTracker earlier on umbraco 4 or 6, and I remember it was creating redirects automatically when any node URL was changed.
It is said in current description: "It automatically tracks URL changes, for instance when a node is renamed, and makes sure the old URL will redirect to the new location."
But this is not the case when I install it on my Umbraco 7.0.3 / iisexpress / mssql2012. No records are being added automatically. Logging does not show anything suspicious like errors. Redirecting works for manually created items.
How do I get 301urlTracker to create redirect items automatically?
PS: I also remember being able to add 301urlTracker "widget" to node Properties itself, so I can manage redirects in-place. Have not found info on this in current version. Is this feature discontinued as well?
I can see in sources that it's still supposed to create redirects automatically, but it just does not work.
Code
Document.BeforeMove += Document_BeforeMove;
Document.BeforePublish += Document_BeforePublish;
content.BeforeClearDocumentCache += content_BeforeClearDocumentCache;
Document.BeforeDelete += Document_BeforeDelete;
Domain.AfterDelete += Domain_AfterDelete;
Domain.AfterSave += Domain_AfterSave;
Domain.New += Domain_New;
is being invoked (even though ApplicationBase is obsolete), but methods/events are never being called.
I can see code like this is recommented in https://github.com/umbraco/Umbraco4Docs/blob/master/Documentation/Reference/Events/application-startup.md , but my VS tells me Document is obsolete too, and I should be using Core.Models.Content. Probably something like https://github.com/umbraco/Umbraco4Docs/blob/master/Documentation/Reference/Events-v6/ContentService-Events.md
I tried it and ContentService methods are being invoked indeed.
Hi Dima
Have you tried to set "urlTracker:trackingDisabled" to false?
It's described in the settings tab of the Url Tracker ("The Url Tracker supports a few settings, which you can use in the appSettings section of your web.config.")...
Regards
Vlax
Hi Vlax, I believe I did. Even though it should not be required because it's enabled by default.
Like I said in the post before, I have debugged it with source code and found a reason it does not work: addon uses legacy events methods which do not fire on documents publish. Now it's just a matter of time Stefan will fix this bug I believe.
I can confirm this is an issue in 7.0.4. Here are the rows from the database when renaming a page then naming it back:
Trying to navigate to the old URL would just result in the 404 error page.
Confirmed also as an issue in 7.1.1.
Not working in 7.1.4 either. Is the source code available somewhere so I can update the events?
https://github.com/kipusoep/UrlTracker
is working on a reply...
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.