diff --git a/src/router.js b/src/router.js index 84fa4372b7791c8a5b45e88e2ba63eea67be63e4..25ba9124944fc8086d1833734faae572ccdd9daa 100644 --- a/src/router.js +++ b/src/router.js @@ -28,12 +28,12 @@ const routes = [ } }, { - path: '/tracklist/:type/:id', + path: window.location.pathname + 'tracklist/:type/:id', name: 'Tracklist', component: Tracklist }, { - path: '/artist/:id', + path: window.location.pathname + 'artist/:id', name: 'Artist', component: Artist, meta: { @@ -41,22 +41,22 @@ const routes = [ } }, { - path: '/album/:id', + path: window.location.pathname + 'album/:id', name: 'Album', component: Tracklist }, { - path: '/playlist/:id', + path: window.location.pathname + 'playlist/:id', name: 'Playlist', component: Tracklist }, { - path: '/spotify-playlist/:id', + path: window.location.pathname + 'spotify-playlist/:id', name: 'Spotify Playlist', component: Tracklist }, { - path: '/charts', + path: window.location.pathname + 'charts', name: 'Charts', component: Charts, meta: { @@ -64,7 +64,7 @@ const routes = [ } }, { - path: '/favorites', + path: window.location.pathname + 'favorites', name: 'Favorites', component: Favorites, meta: { @@ -72,37 +72,37 @@ const routes = [ } }, { - path: '/errors', + path: window.location.pathname + 'errors', name: 'Errors', component: Errors }, { - path: '/link-analyzer', + path: window.location.pathname + 'link-analyzer', name: 'Link Analyzer', component: LinkAnalyzer }, { - path: '/about', + path: window.location.pathname + 'about', name: 'About', component: About }, { - path: '/info-arl', + path: window.location.pathname + 'info-arl', name: 'ARL', component: InfoArl }, { - path: '/info-spotify', + path: window.location.pathname + 'info-spotify', name: 'Spotify Features', component: InfoSpotifyFeatures }, { - path: '/settings', + path: window.location.pathname + 'settings', name: 'Settings', component: Settings }, { - path: '/search', + path: window.location.pathname + 'search', name: 'Search', component: Search, meta: {