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

    Router base problem when using hot reloading

    Help
    1
    1
    464
    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
      rusia last edited by rusia

      I develop my app with hot reload but not on localhost but on a domain.
      To do so I just load the script with <script type="text/javascript" src="https://localhost:8080/app.js"></script> and add <base href="https://localhost:8080/"> to my html loaded from the server.
      Everything went well until I wanted to use vue router. I expected that this.$router.push('somepage') will push me to https://mydomain.com/somepage
      But instead it sends me to https://localhost:8080/somepage
      I tried to edit router/index.js and changed base: process.env.VUE_ROUTER_BASE to base: https://mydomain.com
      Now it sends me to https://localhost:8080/https:/mydomain.com/somepage
      Anybody can help?

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