A
A
Alexey Sklyarov2019-01-12 22:42:43
Vue.js
Alexey Sklyarov, 2019-01-12 22:42:43

How can I get to the password reset page when mode history is enabled in vue-router?

I made a password reset component, which is available at: site.ru/reset-password/, the user goes to it from the letter (for example, site.ru/reset-password?token=123123123). The documentation says that when using more history, we can no longer directly go to the page, for example: /account/, but how is it possible to visit the page with password recovery in spa applications? Do not create a separate page specifically for this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Romanov, 2019-01-12
@0example

The server should return index.html anyway. And then vue-router itself redirects to the desired route on its own

K
Klein Maximus, 2019-01-13
@kleinmaximus

use ssr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question