Homepage Routing Issue on New Domain with Query Parameters – Redirects to Stencil Instead of Next.js #2240
ShubhangiSaini8
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
We’re currently working with a hybrid BigCommerce setup, using both Stencil and a headless Next.js frontend, and we've run into a strange issue related to homepage routing on our new domain when query parameters are present.
🔍 Issue Summary
We have two storefronts configured:
✅kapiva.in – Our main production storefront (works perfectly)
When users visit:
https://kapivamen.in
…it correctly loads our Next.js homepage (hosted externally).
However, when a query parameter is added, like:
https://kapivamen.in/?lang=en
👉 The request falls back to the Stencil homepage, instead of continuing to serve the headless (Next.js) homepage.
This does not happen on kapiva.in, where query parameters work fine and do not interfere with routing.
⚙️ Technical Setup
🧪 Troubleshooting So Far
❓What We Need Help With
Any help or insights would be greatly appreciated.
Thanks in advance,
Beta Was this translation helpful? Give feedback.
All reactions