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
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
🥺
@Morelet’s Crocodile 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.
i don't understand your question, but
it was possible to do before in Pages.can you show how you did it in the pages router? because looking at it we might be able to figure out something
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