Next.js Discord

Discord Forum

How can I decorate the URL in Nextjs App, as it was possible to do before in Pages.

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
I have a wpgraphql page that sends a cursor with a long string to the url (ex: after=YXJyYXljb25uZWN0aW9uOjEyOA==), I would like to embellish that and put something like page=1, page=2, but I still need that string for the page to work but you know that the client sees something nicer in the url.

5 Replies

Morelet’s CrocodileOP
🥺
most pages router feature are translatable to the app router
Morelet’s CrocodileOP
Next.js Link "as"
In Pages Router, href props pointing to a dynamic route are automatically resolved and no longer require an as prop. In App Router, dynamic hrefs are not even supported which means it's basically meaningless