Getting params = {"slug":["index"]} when visiting homepage through Link but on hard refresh getting params={} #62741
Unanswered
coderaja8
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using app router for a project.
In localhost I am always getting params={} but in production I am getting params = {"slug":["index"]} when visiting homepage through Link but on hard refresh getting params={}
After visiting homepage through Link
After refreshing homepage
I am facing this issue after I added Supabase authentication. I am not sure about the specific that cause this issue.
Also I noticed, edge function is generated after i added Supabase authentication. Can this cause this issue by any chance?
Please help me understand if this is expected or a bug.
Thank you.
app/[[...slug]]/layout.js
package.json:
next.config:
Beta Was this translation helpful? Give feedback.
All reactions