Recently, I was working on an Umbraco case with my colleague, Harry Buxton, and the issue was that even though we were updating the names of certain content pages, the links to those pages were not updated correctly. As a result, we couldn't access those pages on the front end. Furthermore, they were not visible in the "Redirect URL Management" dashboard either.
Problem
Umbraco CMS has a built-in URL Redirect Management feature for routing and URL tracking. Whenever a document is published, and this causes changes to its URL (and any of its decendants' URLs), Umbraco makes a note of the old URLs and whenever an incoming request is served and the default content finders cannot find a matching published document, Umbraco checked whether the URL matches on of these saved URLs. If a match is found, Umbraco returns a "301 Redirect" response pointing to the new URL of the document.
The issue was that this was not happening with our content pages; after updating the content names, the links were not updated, and no redirects were happening.
Below is how it was supposed to work, i.e, links are updated, and the Redirect URL Management section is visible with the correct redirect information.
Solution
After some investigation, we discovered that this issue was occurring only with content pages that utilised a specific Umbraco document type, and the first thing we wanted to verify was whether the "Redirect tracking" was disabled for that document type.
To verify this, we navigated to the Settings section in the Umbraco back office, selected the Document Type, proceeded to the Permissions section, and examined the Allow vary by culture setting - this was NOT checked, which was the reason why Umbraco redirect tracking was not enabled for that document type.
After checking this checkbox and saving our changes, Umbraco redirect tracking was enabled, we could render the content changes with their latest URLs, and we could also see that those URL changes were tracked by the Redirect URL Management.
That was all we needed do to resolve this issue. Happy coding.
Comments
Post a Comment