Skip to content
Advertisement

Tag: url

Vue-Router URL from external source always redirects to “/”

I am running Vue 2 directly off the Vue dev server. I am trying to enter a vue route (vue-router) from an external url. For some reason I don’t know, vue-router always redirects my request and handles it as if it comes from “/”, which automatically redirects to “/login” I found a similiar questions here (https://forum.vuejs.org/t/access-to-a-vue-route-from-external-link/107250) but there is no

Get req params in client Javascript

Say I have a string like http://somerandomwebsite.com/345345/465645456546 This string matches the pattern http://somerandomwebsite.com/:userId/:gameId From the above string, how do I extract the …

Advertisement