hello i want to redirect url example https://mylink.com/some-page.html and my fetch link https://mylink.com/another-page.html
i'm use router.replace but is add the last link inside the first how to fix this to replace the first link by the second
i'm use window.location
it's possible to do with another solution in vue router or nuxt?
the idea is a params {'another-page'}
but the api return all url https://mylink.com/another-page.html not just params.
How to do that. please
CodePudding user response:
You should probably take the received URL and cut the last part of it to have only the path. Then you could use the Vue router to move to the according page inside of your Nuxt app.
CodePudding user response:
You can use this.$router.push('/another-page');
for internal links.