F
F
frontendo2017-09-02 16:13:28
Vue.js
frontendo, 2017-09-02 16:13:28

What is the correct way to pass parameters to vue-router routes?

here is one of my routes

{
      path: '/reset-password/:token',
      name: 'resetPassword',
      component: ResetPassword,
      props: true,
      meta: { type: 'auth' }
    },

if you go to this address
http://localhost:8080/reset-password/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
, then everything works fine,
but if you pass a jsonwebtoken parameter that contains two dots, it gives an error
http://localhost:8080/reset-password/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwidGltZSI6MTUwNDM1NjgyMjQ3MywiaWF0IjoxNTA0MzU2ODIyfQ.VThslyt487wGi73e0ICrTe74Z3oyWn3tRSwtvsTMvrY

How can it be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem0071, 2017-09-02
@frontendo

Most likely the problem is not in Vue, but in webpack
link1 link2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question