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
Update query params forwarding behavior for redirects.json file #10898
Comments
|
|
This issue also applies to a redirect like this: In this case the URL works, but not for the |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Is there any workaround for this? |
|
Hey @Louvki o/ No workaround that I'm aware of I'm afraid! We'd welcome a PR if you find the time 👻 |
|
@Louvki 👋, if you create a topic on our forum I might be able to help you with a workaround https://forum.ghost.org |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Hello, @Stale. I'm working on this. |
ref TryGhost#10898 - It parses the query params and merge them and stringify the result.
Todo
|
ref #10898 - The redirects configuration's `to` & `from` URL parameters used to ignore it's query string parameters, which resulted in unexpected behavior - Current changeset only partially fixes the issue. Now `to` URL's query parameters always take precedence over incoming query parameters and the rest of query parameters are passed through.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

For custom redirects, Ghost currently overwrites query params in
tourl as they are infrom. This means iftourl has any query params, they will get overridden to be empty instead iffromurl has no query params. This is leading to unexpected behavior, specially in cases wheretourl has explicit query params. Suggested update to behavior -fromandtoquery params, withfromoverwritingtofromThis covers most scenarios in which query params override can be used.
The text was updated successfully, but these errors were encountered: