What changes search parameters when forming dynamic routing? #68525
Unanswered
kliatskiidenis
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!



There was a task to make routing for processing such urls
example:
/cars/toyota/
/cars/toyota/camry/
/cars/toyota/2023-year/
/cars/2020-year/
/cars/rear-drive/
made such directories as in the photo
in the page.tsx file, I process the parameters from the url, bring them to the format I need, output them to the console:
at first, what I need is displayed, but after a few seconds, the same console.log is displayed, but the parameters have completely different values
an example of the console response is visible on the screen
Please tell me what is causing me to change my required data to other similar to some official directory names?
Beta Was this translation helpful? Give feedback.
All reactions