We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
urlRedirects
No response
Hydrogen
2024.7.2
2.10.1
/a*
You see 404 page if no route nor redirect for a* is setup
a*
You are redirected to the first redirection that starts with a
a
This happens because we concatenate the URL path to the query here:
hydrogen/packages/hydrogen/src/routing/redirect.ts
Line 64 in 0c1e511
This allows the user to manipulate the Shopify query syntax to query for any other redirect.
A solution for this is to use the Phrase query and wrap the path in double quotes (")
Phrase query
"
- variables: {query: 'path:' + redirectFrom.replace(/\/+$/, '')}, + variables: {query: 'path:"' + redirectFrom.replace(/\/+$/, '') + '"'},
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.7.2
What version of Remix are you using?
2.10.1
Steps to Reproduce
/a*
Expected Behavior
You see 404 page if no route nor redirect for
a*
is setupActual Behavior
You are redirected to the first redirection that starts with
a
This happens because we concatenate the URL path to the query here:
hydrogen/packages/hydrogen/src/routing/redirect.ts
Line 64 in 0c1e511
This allows the user to manipulate the Shopify query syntax to query for any other redirect.
A solution for this is to use the
Phrase query
and wrap the path in double quotes ("
)The text was updated successfully, but these errors were encountered: