Skip to content

Conversation

@ymilin
Copy link

@ymilin ymilin commented Jun 19, 2025

When building the new URL for Redirects with the APPEND_QUERY_STRINGS Strategy, add a check for empty query string in request to avoid unnecessary trailing ? in target URL

fixes #353

This PR addresses issue: #353

This pull request changes:

  1. BarrelStrength\Sprout\redirects\redirects\Redirects::processRedirectsForCurrentRequest
    Add a check for empty query string when instantiating $queryString

Signature, (add an [x] within each checkbox to confirm)

  • I have linked to the Sprout Plugin Github Issue this PR resolves
  • I have described what this PR adds/removes/changes

When building the new URL for Redirects with the APPEND_QUERY_STRINGS Strategy, add a check for empty query string in request to avoid unnecessary trailing `?` in target URL
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.

1 participant