A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/umbraco/Umbraco-CMS/issues/10066 below:

Redirects do not work due to missing null check · Issue #10066 · umbraco/Umbraco-CMS · GitHub

I had to run a query in the database after upgrading my Umbraco Cloud project from 8.9 to 8.11 to fix all the existing redirects.

Umbraco version

I am seeing this issue on Umbraco version: 8.11.2

Specifics

Recently I upgraded an Umbraco Cloud project from 8.9 --> 8.10.1 --> 8.11.1. After finishing the upgrade, I noticed that all redirects stopped working and would simply return 404 on the source URL. Upon further investigation, I noticed that redirects created after the upgrade had a value in the culture column in the database table for redirects (umbracoRedirectUrl) while existing redirects simply had a NULL value.

Running a query to update all of the old redirects to set the culture to my default (luckily I only had one language) seems to have fixed the issue:

UPDATE umbracoRedirectUrl SET culture = ‘en-us’ WHERE culture IS NULL
Steps to reproduce
  1. Create a redirect in redirect URL management
  2. Open up the database and set the culture to NULL on the redirect
  3. Redirect no longer works
  4. Set the culture back to the original value (en-us for instance)
  5. Redirect starts working
Expected result

All existing redirects continually work after an upgrade.

Actual result

Redirects stopped working, perhaps due to a missing migration.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4