From 287bcd5135c9aee11f98712d1616befec4f6e528 Mon Sep 17 00:00:00 2001 From: marcsello Date: Thu, 26 Nov 2020 23:18:13 +0100 Subject: [PATCH] Now going back to the same page --- src/views/Collection.vue | 13 ++++++++++++- src/views/Item.vue | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/Collection.vue b/src/views/Collection.vue index 3053b89..4727e79 100644 --- a/src/views/Collection.vue +++ b/src/views/Collection.vue @@ -73,7 +73,18 @@ export default { }, methods: { rowClicked(data) { - this.$router.push({name: 'Item', params: {id: data.id}, query: {collection: this.$route.params.id}}); + this.$router.push( + { + name: 'Item', + params: { + id: data.id + }, + query: { + collection: this.$route.params.id, + srcpage: this.$route.query.p + } + } + ); }, startPlayer(spotify_id) { this.$store.dispatch('openPlayer', spotify_id); diff --git a/src/views/Item.vue b/src/views/Item.vue index a1746a6..682de8a 100644 --- a/src/views/Item.vue +++ b/src/views/Item.vue @@ -3,7 +3,7 @@

- + {{ songInfo.type | capitalize }}