Next.js Discord

Discord Forum

searchParams not work in [lng] route

Unanswered
jjordan0 posted this in #help-forum
Open in Discord
Avatar
jjordan0OP
Hello everyone, I created a page in my next project and through a tutorial I made whole changes to my project, changing the whole structure and since I put all the files inside the [lng] folder, in the pages the "searchParams" don't work anymore, always returning an empty object.
This is the tutorial: "https://locize.com/blog/next-13-app-dir-i18n/#step-2", could you help me?

2 Replies

Avatar
jjordan0OP
I just tried changing from the package used before to next-intl, the problem persists, it only starts working again after I put all the files back out of the [local] folder, I think it may be a bug of next, I don't know
Avatar
Alfonsus Ardani
You might need to send some code if you want us to take a look what went wrong