From afa3c21c99868adb79331d0f63c17780cfd3d963 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 5 Mar 2022 20:37:22 +0100 Subject: [PATCH] Read title of list from props when settings document title --- src/components/ResultsSection.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/ResultsSection.vue b/src/components/ResultsSection.vue index 41eb0c1..5cb0cd0 100644 --- a/src/components/ResultsSection.vue +++ b/src/components/ResultsSection.vue @@ -149,10 +149,12 @@ export default { this.page = this.getPageFromUrl() || this.page; if (this.results.length === 0) this.getListResults(); - store.dispatch( - "documentTitle/updateTitle", - `${this.$router.history.current.name} ${this.$route.params.name}` - ); + if (!this.shortList) { + store.dispatch( + "documentTitle/updateTitle", + `${this.$router.history.current.name} ${this.title}` + ); + } }, mounted() { if (!this.shortList) {