Call route inside a function
-
Hi together,
I’ve got one small question regarding the routing. Is there a Quasar based function I can call within a function to call another route?
Scenario
I enter my credentials into a login form and receive the access token from the api-server. After that I want to redirect the user to a specific page.
I tried to reach it via
location.href = "/xxxxx"
This works fine when I use Quasar Play and using the webbrowser, but not as a built Android application.
Thank you very much.
-
Right after posting the question, I found the answer.
this.$router.push('/xxxxx')
did the trick.
Thank you for reading.