Infinite loop error when creating redirect

Created on 21 July 2023, 11 months ago
Updated 11 August 2023, 11 months ago

In the past a client created a blog article with a typo in the URL. The URL was https://escortscapetown.com/blog/true-infection-fatality-rate-covid-19-b...

We decided to clean up the URL and remove the last three characters, resulting in a new URL:
https://escortscapetown.com/blog/true-infection-fatality-rate-covid-19-b...

The Redirect module did not create a URL redirect from the old URL to the new URL, so there is a 404 error when someone attempts to reach the old URL.

When we try to create a redirect now, from the old URL to the current URL, the redirect module throws this error:

You are attempting to redirect the page to itself. This will result in an infinite loop.

Neither Google nor Drupal appears to see the two URL's as the same. Why are we supposedly creating an infinite loop?

πŸ› Bug report
Status

Active

Version

1.8

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States platinum1

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

Comments & Activities

  • Issue created by @platinum1
  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

    The problem is that "%3f" is "?". Looks like we are htmldecoding urls for the checks, and then this is considered an empty query args, which is later stripped.

Production build 0.69.0 2024