URL parameters from source are appended to redirect path

Created on 18 September 2015, about 9 years ago
Updated 11 July 2024, 5 months ago

I have this redirect:
source: view.aspx?pg=uzitecne_informace/certifikat/certifikat.html
destination: node/690 (alias certifikat)

It should just redirect to alias of node, but it also adds query string to destination address:
certifikat?pg=uzitecne_informace/certifikat/certifikat.html

It works because Drupal not care about this query string, but it is problem for SEO, because I have 2 URLs with the same content.

Steps to Reproduce

  • Create a redirect with parameters
  • Set the destination to an internal path (ie node/xxx)
  • The redirect works, but the parameters are added to node alias path
🐛 Bug report
Status

Active

Component

Code

Created by

🇨🇿Czech Republic Honza Pobořil

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
  • 🇺🇸United States wylbur Minneapolis, Minnesota, USA

    I investigated this issue and this bug still applies.

    I tried to create a workaround by adding the fully qualified URL of the site, but on saving the redirect, the fully qualified URL is replaced with the internal node path.

    This applies to the latest release and the latest DEV release updated 6 May 2020 at 23:18 UTC.

Production build 0.71.5 2024