D
D
dicem2020-04-21 13:34:01
Vue.js
dicem, 2020-04-21 13:34:01

Router.push() to external sources?

The bottom line is, the project in the linter has "no restricted global vars" (it seems to be so), so I can’t redirect using location.href, is it possible somehow using Vue Router to go to the full URL, let’s say this: where the URL is absolute way.
this.$router.push({ path: URL });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-04-23
@dicem

Use through window, it won't go anywhere:
window.location.href

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question