One redirect works, the other not so much. Using ?id=xxx to redirect to a /page/xxx.

Topic summary

Issue: Setting URL redirects (Online Store > Navigation) using query parameters (?id=xxx) to send to /pages/xxx. One mapping works (?id=test[s] → /pages/tests), while another (?id=coaster1 → /pages/wholesale) sends users to the home page.

Clarifications: The destination /pages/wholesale loads correctly. The source URLs /?id=tests and /?id=coaster1 aren’t actual pages; without redirects they resolve to the home page.

Key point explained: Shopify URL redirects generally trigger only when the source URL returns a 404 (page not found). If the source resolves to a valid page (e.g., the homepage with a query string), the redirect will not fire.

Current status: First redirect behaves as expected; the second continues to route to /. The inconsistency may stem from query-string sources resolving to home instead of 404, preventing the redirect.

Suggested next steps: Confirm whether the failing source URL actually returns a 404. Share full URLs for verification, and consider using path-based sources (without query parameters) or handling query parameters via theme/app logic.

Resolution: Not yet reached; investigation remains open.

Summarized with AI on January 12. AI used: gpt-5.

Hi there,

I’m using the Online Store > Navigation > URL redirect menu to add redirects for QR codes we use. For example:

/?id=tests redirects to /pages/tests

however when I set up a second; ?id=coaster1 to /pages/wholesale … it redirects to home.

Any thoughts?

CalexoOps

Hi @calexo-ops

Do you have “/pages/wholesale” working?

Is it possible to share your URL so that I can check it from my end?

Thanks.

Sajat

yes it works Wholesale

Hi there,

URL redirect works if you are redirecting from a 404 page. I think your current page is working and valid, you may not get redirected to your desired page.

Can you please check if your current source page is available or not?

Thanks.

well lets see… I definitely don’t have any pages available with the address /?id=tests or /?id=coaster1.

without redirecting, they will automatically be sent to / (home).

When setting up the www.calexo.co/?id=test redirect, everything works perfectly. This is why I don’t understand why the second one is still going to /.