diff --git a/redirect.install b/redirect.install index 49aa39d..a67b022 100644 --- a/redirect.install +++ b/redirect.install @@ -236,3 +236,10 @@ function redirect_update_8109() { $config->set('display.default.display_options.exposed_form.options.reset_button', TRUE); $config->save(); } + +/** + * Rehash redirects to account for case sensitivity. + */ +function redirect_update_8110(&$sandbox) { + redirect_update_8100($sandbox); +} diff --git a/src/Entity/Redirect.php b/src/Entity/Redirect.php index e2b6baf..382de12 100644 --- a/src/Entity/Redirect.php +++ b/src/Entity/Redirect.php @@ -61,7 +61,7 @@ class Redirect extends ContentEntityBase { */ public static function generateHash($source_path, array $source_query, $language) { $hash = [ - 'source' => mb_strtolower($source_path), + 'source' => $source_path, 'language' => $language, ];