Redirects that come to the site end up in 404
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3446351. --> Reported by: [fjgarlin](https://www.drupal.org/user/2495842) Related to !33 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>URLs where a specific version is present as the last path segment are redirecting to a page that appends (not replaces) `11.x` as the last path segment. Which results in a 404 because there are 2 versions in the path.</p> <p>For example, this URL:</p> <p><a href="https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Utility%21Unicode.php/function/Unicode%3A%3Astrlen/8.5.x">https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Utility%21Unicode.php/function/Unicode%3A%3Astrlen/8.5.x</a></p> <p>Redirects to an 11.x search page, with the following message:</p> <p>Sorry, api/drupal/core%21lib%21Drupal%21Component%21Utility%21Unicode.php/function/Unicode%3A%3Astrlen/8.5.x/11.x cannot be found.</p> <p>(Notice the &ldquo;8.5.x/11.x&rdquo; at the end of the url in the message.)</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Figure out the object and look for that in the latest or closest (if possible) version.</p> > Related issue: [Issue #3444958](https://www.drupal.org/node/3444958) > Related issue: [Issue #3342815](https://www.drupal.org/node/3342815)
issue