Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if querystring isset before adding questionmark to destinationUrl #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dennisadriaans
Copy link

@dennisadriaans dennisadriaans commented Mar 5, 2023

Google complains about an alternate page with proper canonical tag because for every redirect there is a question mark added to the destination URL.

@idleog
Copy link

idleog commented Mar 8, 2023

It seems that this commit does not remove the question-mark.

@idleog
Copy link

idleog commented Mar 8, 2023

Shouldn't it be on line 90

if ($queryString) { // instead of isset($querystring)
$destinationUrl .= "?" . $queryString;
}

@knightmediaweb
Copy link

if ($queryString) { // instead of isset($querystring)
$destinationUrl .= "?" . $queryString;
}

Can confirm this works.

@meredevelopment
Copy link

Confirmed, would you consider updating your PR please @dennisadriaans? And then hopefully someone can merge it in 🙌

@dennisadriaans
Copy link
Author

dennisadriaans commented Apr 24, 2023

I updated the PR as requested.

@MatthiasBrodelet
Copy link

Can someone merge this please?

@frederikvdbe
Copy link

Can confirm this works. Please merge 🙏

@duncandejong
Copy link

I also can confirm this works. I hope this gets merged soon.

@dr-codswallop
Copy link

Is this still waiting to merge the fix? v2.0.1 installed and still has the "?" on redirects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants