title: vue js navigate to url with question mark
body: <p>my Vue js project login template click button it redirects to like this</p>
  
  <pre><code>http://localhost:8080/#/login to http://localhost:8080/?#/login
  </code></pre>
  
  <p>both Url show interface.<br>
  1st Url not set the local storage variable 'token'.<br>
  2nd Url is set the local storage variable 'token'.<br>
  how to solve it?</p>
  
  <p>Login.vue</p>
  
  <pre><code>&lt;template&gt;
      &lt;div class="row col-sm-12"&gt;
          &lt;form&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Email address:&lt;/label&gt;
                  &lt;input type="email" class="form-control" v-model="email"&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                  &lt;label&gt;Password:&lt;/label&gt;
                  &lt;input type="password" class="form-control" v-model="password"&gt;
              &lt;/div&gt;
              &lt;div class="checkbox"&gt;
                  &lt;label&gt;&lt;input type="checkbox"&gt; Remember me&lt;/label&gt;
              &lt;/div&gt;
              &lt;button @click="login" type="submit" class="btn btn-success"&gt;Submit&lt;/button&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  
  
  &lt;/template&gt;
  
  &lt;script&gt;
      export default{
          data(){
              return{
                  email:'',
                  password:''
              }
          },
          methods: {
              login(){
                  var data  = {
                      email:this.email,
                      password:this.password
                  }
                  this.$http.post("api/auth/login",data)
                      .then(response =&gt;  {
                          this.$auth.setToken(response.body.token)
                         // console.log(response)
                      })
              }
  
          }
      }
  &lt;/script&gt;
  </code></pre>