Last update created redirect loop for: domain.tld/%20 to <front>

Created on 17 March 2021, about 4 years ago
Updated 20 May 2025, about 4 hours ago

Problem

A customer's website (of a music festival), gets a lot requests like domain.tld/%20 (a single space as path) from smart-tvs and similar sources.

So they won't get a 404, we created the following redirect years ago: " " (single blank space) to , which worked fine until rc4.

It's seems the source path is now trimmed AFTER reading from database and reducing the effective path from /%20 to / and thus creating an infinite loop.

Entering %20 as source-path in url-redirect doesn't work, it will be handled as %2520.

Steps to reproduce

It not so easy to prepare to reproduce since the module trims the source path upon creating a rule.
Probably the only way now is to create the rule by hand in the database or at least edit the source-path in database.

To check if the request works we use: wget "https://domain.tld/ "

Proposed resolution

Since the source-path is trimmed while creating a rule, it should be unnecessary to trim it again after reading the rule from database.

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland Toraih

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States wylbur Minneapolis, Minnesota, USA

    Closing this as Outdated as Drupal 7 is EOL. If this is still an issue for D11, please open an issue and reference this issue.

Production build 0.71.5 2024