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

    vueRouterBase, what does it do?

    Help
    2
    6
    402
    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.
    • R
      ripplethor last edited by

      Can anyone shed any light on what vueRouterBase does.

      I have been experimenting with quasar and I assumed that setting vueRouterBase to something like ‘/login’ would make the default routes start at /login

      However, it doesn’t appear to do that as all I get is a 404 and a redirect back to the root /

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by s.molinari

        My understanding is, your routes would all go behind ‘/login’, if that is what you set it to. So, for instance, if you have a ‘profile’ page, you would find it under ‘/login/profile’.

        https://router.vuejs.org/api/#base

        It also needs to be '/login/'.

        Scott

        R 1 Reply Last reply Reply Quote 0
        • R
          ripplethor @s.molinari last edited by

          @s-molinari said in vueRouterBase, what does it do?:

          https://router.vuejs.org/api/#base

          That was my understanding also… but it doesn’t?
          Should mention that I am using SSR mode.

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            I think I also read somewhere, you need to be in history mode too. Are you in history mode?

            Scott

            R 1 Reply Last reply Reply Quote 0
            • R
              ripplethor @s.molinari last edited by

              @s-molinari Yeh… I am in history mode

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                Then, I’m out of suggestions. Sorry. It does say in the doc, only mess with that setting, if you know what you are doing. 😃

                Scott

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