and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

...
 
Commits (2)
...@@ -20,7 +20,7 @@ Vue.use(VueRouter) ...@@ -20,7 +20,7 @@ Vue.use(VueRouter)
const routes = [ const routes = [
{ {
path: window.location.pathname, path: '/',
name: 'Home', name: 'Home',
component: Home, component: Home,
meta: { meta: {
...@@ -28,12 +28,12 @@ const routes = [ ...@@ -28,12 +28,12 @@ const routes = [
} }
}, },
{ {
path: window.location.pathname + 'tracklist/:type/:id', path: '/tracklist/:type/:id',
name: 'Tracklist', name: 'Tracklist',
component: Tracklist component: Tracklist
}, },
{ {
path: window.location.pathname + 'artist/:id', path: '/artist/:id',
name: 'Artist', name: 'Artist',
component: Artist, component: Artist,
meta: { meta: {
...@@ -41,22 +41,22 @@ const routes = [ ...@@ -41,22 +41,22 @@ const routes = [
} }
}, },
{ {
path: window.location.pathname + 'album/:id', path: '/album/:id',
name: 'Album', name: 'Album',
component: Tracklist component: Tracklist
}, },
{ {
path: window.location.pathname + 'playlist/:id', path: '/playlist/:id',
name: 'Playlist', name: 'Playlist',
component: Tracklist component: Tracklist
}, },
{ {
path: window.location.pathname + 'spotify-playlist/:id', path: '/spotify-playlist/:id',
name: 'Spotify Playlist', name: 'Spotify Playlist',
component: Tracklist component: Tracklist
}, },
{ {
path: window.location.pathname + 'charts', path: '/charts',
name: 'Charts', name: 'Charts',
component: Charts, component: Charts,
meta: { meta: {
...@@ -64,7 +64,7 @@ const routes = [ ...@@ -64,7 +64,7 @@ const routes = [
} }
}, },
{ {
path: window.location.pathname + 'favorites', path: '/favorites',
name: 'Favorites', name: 'Favorites',
component: Favorites, component: Favorites,
meta: { meta: {
...@@ -72,37 +72,37 @@ const routes = [ ...@@ -72,37 +72,37 @@ const routes = [
} }
}, },
{ {
path: window.location.pathname + 'errors', path: '/errors',
name: 'Errors', name: 'Errors',
component: Errors component: Errors
}, },
{ {
path: window.location.pathname + 'link-analyzer', path: '/link-analyzer',
name: 'Link Analyzer', name: 'Link Analyzer',
component: LinkAnalyzer component: LinkAnalyzer
}, },
{ {
path: window.location.pathname + 'about', path: '/about',
name: 'About', name: 'About',
component: About component: About
}, },
{ {
path: window.location.pathname + 'info-arl', path: '/info-arl',
name: 'ARL', name: 'ARL',
component: InfoArl component: InfoArl
}, },
{ {
path: window.location.pathname + 'info-spotify', path: '/info-spotify',
name: 'Spotify Features', name: 'Spotify Features',
component: InfoSpotifyFeatures component: InfoSpotifyFeatures
}, },
{ {
path: window.location.pathname + 'settings', path: '/settings',
name: 'Settings', name: 'Settings',
component: Settings component: Settings
}, },
{ {
path: window.location.pathname + 'search', path: '/search',
name: 'Search', name: 'Search',
component: Search, component: Search,
meta: { meta: {
...@@ -118,6 +118,7 @@ const routes = [ ...@@ -118,6 +118,7 @@ const routes = [
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
base: window.location.pathname,
routes, routes,
scrollBehavior(to, from, savedPosition) { scrollBehavior(to, from, savedPosition) {
return { x: 0, y: 0 } return { x: 0, y: 0 }
......