diff --git a/client/components/ui/LibrariesDropdown.vue b/client/components/ui/LibrariesDropdown.vue index 22abb301..7fea2dcb 100644 --- a/client/components/ui/LibrariesDropdown.vue +++ b/client/components/ui/LibrariesDropdown.vue @@ -92,12 +92,13 @@ export default { if (this.$route.name.startsWith('config')) { // No need to refresh - } else if (this.$route.name.startsWith('library') && this.$route.name !== 'library-library-series-id') { - const newRoute = this.$route.path.replace(currLibraryId, library.id) - this.$router.push(newRoute) } else if (this.$route.name === 'library-library-series-id' && library.mediaType === 'book') { // For series item page redirect to root series page this.$router.push(`/library/${library.id}/bookshelf/series`) + } else if (this.$route.name === 'library-library-search') { + this.$router.push(this.$route.fullPath.replace(currLibraryId, library.id)) + } else if (this.$route.name.startsWith('library')) { + this.$router.push(this.$route.path.replace(currLibraryId, library.id)) } else { this.$router.push(`/library/${library.id}`) }