How to use Links with custom routes that come from CMS? #16165
Unanswered
emmanuelolivo1002
asked this question in
Help
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.
-
My project folder structure is like this:
And I want to use pretty urls so on my
next.config.js
file I added this:Basically what I want to do is use the
Link
component fromnext/link
to go the correct files whenever I get a URL from my CMS. So the following component should go to the/pages/hotels
page like so:But for some reason when I do this approach my app does a reload of the site. I previously was able to achieve this successfully with next-routes but wanted to moved out of it since it seems it's no longer being supported.
Beta Was this translation helpful? Give feedback.
All reactions