No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Call route inside a function

    Help
    1
    2
    923
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      D3myon last edited by D3myon

      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.

      D 1 Reply Last reply Reply Quote 0
      • D
        D3myon @D3myon last edited by

        Right after posting the question, I found the answer.

        this.$router.push('/xxxxx')
        

        did the trick.

        Thank you for reading.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post