mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
[web] Use named route for the library search page
Switching to named routes in order to reduce future maintenance.
This commit is contained in:
@@ -27,7 +27,7 @@ import PagePlaylists from '@/pages/PagePlaylists.vue'
|
||||
import PagePlaylist from '@/pages/PagePlaylist.vue'
|
||||
import PageFiles from '@/pages/PageFiles.vue'
|
||||
import PageRadioStreams from '@/pages/PageRadioStreams.vue'
|
||||
import PageSearch from '@/pages/PageSearch.vue'
|
||||
import PageSearchLibrary from '@/pages/PageSearchLibrary.vue'
|
||||
import SpotifyPageBrowse from '@/pages/SpotifyPageBrowse.vue'
|
||||
import SpotifyPageBrowseNewReleases from '@/pages/SpotifyPageBrowseNewReleases.vue'
|
||||
import SpotifyPageBrowseFeaturedPlaylists from '@/pages/SpotifyPageBrowseFeaturedPlaylists.vue'
|
||||
@@ -216,13 +216,14 @@ export const router = createRouter({
|
||||
path: '/'
|
||||
},
|
||||
{
|
||||
name: 'search',
|
||||
path: '/search',
|
||||
redirect: '/search/library'
|
||||
},
|
||||
{
|
||||
path: '/search/library',
|
||||
name: 'Search Library',
|
||||
component: PageSearch
|
||||
component: PageSearchLibrary,
|
||||
name: 'search-library',
|
||||
path: '/search/library'
|
||||
},
|
||||
{
|
||||
path: '/music/spotify',
|
||||
|
||||
Reference in New Issue
Block a user