From 8f030f2b046d3f2439655d630e8f5157cafb0b6d Mon Sep 17 00:00:00 2001 From: Tiberiu Ichim Date: Sun, 22 Feb 2026 20:22:00 +0200 Subject: [PATCH] Fix: ensure batch move correctly switches to the current library view --- client/components/modals/item/MoveToLibraryModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/modals/item/MoveToLibraryModal.vue b/client/components/modals/item/MoveToLibraryModal.vue index f7001b72c..d972ee30e 100644 --- a/client/components/modals/item/MoveToLibraryModal.vue +++ b/client/components/modals/item/MoveToLibraryModal.vue @@ -208,10 +208,13 @@ export default { if (response.failCount > 0) { this.$toast.warning(this.$getString('ToastItemsMoveFailed', [response.failCount])) } + // Store the current library ID before clearing the selected items so we know where to redirect to + const redirectLibraryId = this.currentLibraryId + // Clear selection after batch move this.$store.commit('globals/resetSelectedMediaItems') if (response.successCount > 0) { - this.$router.push(`/library/${this.currentLibraryId}`) + this.$router.push(`/library/${redirectLibraryId}`) } } else { // Single item move