Relative Content

Tag Archive for vue.jsvue-router

Vue router not changing or responding to URL

Navigating from one page to the other works, but this change is not reflected in the URL path. Trying to enter a page directly from the URL (i.e. localhost:8080/explore) also just loads the home page.

Vue route name is undefined and path is incorrect

I’m trying to have some logic in my root App.vue (as soon as the app loads) that depends on the current route, but I’m finding the route.name to be undefined, and when I tried logging the path it was incorrect.

Redirection problems with router-link in Vue.js: button does not return to another page

I recently started working on a Vue.js project. The purpose of my participation in the project was that the site has a Landing Page (App.vue), with several components that integrate App.vue, and I needed to create a second page (Site.vue) and redirect a button present in the “Telemedina.vue” component for this second page (Site.vue).
I installed router-link in the project using “npm install vue-router –force” smoothly.