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

    Using browsers' back button to navigate a step back (using q-stepper)

    Help
    1
    1
    169
    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
      daniel last edited by

      Hi,

      the q-stepper is the perfect fit for our use case. The only thing I’m missing is the ability to go back one step using the back button of the browser. Currently, when using the back button, the previous page (not the step) is shown, which means, when I navigate from the welcome page to the page with the stepper, pressing the back button of the browser navigates me (back) to the welcome page.

      <template>
          <q-stepper v-model="step">
            <q-step :name="1" :done="step > 1">Start</q-step>
            <q-step :name="2" :done="step > 2">Middle</q-step>
            <q-step :name="3">End</q-step>
          </q-stepper>
      </template>
      

      For example: I’m currently in step 2. Pressing the back button should navigate me back to step 1.

      Is there a way to use / configure the back button to go back a step? I read in a different post, that there might be a way to combine Vue router and the stepper. But I’ve no idea how to do this.

      I appreciate your help.
      Thanks in advance.

      Best regards,
      Daniel

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