You need to declare your base path in touter config like this :
export default new VueRouter({
mode:'history',
routes:[
{ path: '/:listing', component: ListingPage, name: 'listing' }
],
base:'/listing',
root:"https://stackoverflow.com/",
});
More Related Contents:
- Vue js in laravel [closed]
- How to add external JS scripts to VueJS Components?
- Accessing Vuex state when defining Vue-Router routes
- how to fix ‘Access to XMLHttpRequest has been blocked by CORS policy’ Redirect is not allowed for a preflight request only one route
- How to pass a PHP variable to Vue component instance in Laravel blade?
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- Passing props with programmatic navigation Vue.js
- How to pass laravel CSRF token value to vue
- Vue.js – update router view
- Vue.js – validation fails for file upload in axios when multipart/form-data used in header
- How to fix the error “You may need an appropriate loader to handle this file type”
- Can we make vue.js application without .vue extension component and webpack?
- Is it possible to change props value from method in Vue component?
- Detect Back Button in Navigation Guards of Vue-Router
- Vuejs: Event on route change
- How to pass an object as props with vue router?
- Install vue 3.0 in laravel
- Browser Version and laravel Version
- How to protect image from public view in Laravel 5?
- Vue Router return 404 when revisit to the url
- How to call function on child component on parent events
- Vuejs typescript this.$refs..value does not exist
- How to paginate a collection after get() in Laravel?
- How to Get the Current URL Inside @if Statement (Blade) in Laravel 4?
- Can vue-router open a link in a new tab?
- Laravel Eloquent “WHERE NOT IN”
- Vue js error: Component template should contain exactly one root element
- Error Field doesn’t have a default value in laravel 5.3
- Laravel 4 : Route to localhost/controller/action
- Vuex – Computed property “name” was assigned to but it has no setter