From 8fe663da80ef59ee7eb04bbf8db8621ec3dfacf0 Mon Sep 17 00:00:00 2001 From: guemax Date: Fri, 12 Jul 2024 09:05:30 +0200 Subject: [PATCH] Update title with search query --- src/components/SearchResults.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/SearchResults.vue b/src/components/SearchResults.vue index 54d0cd4d..0cca8c94 100644 --- a/src/components/SearchResults.vue +++ b/src/components/SearchResults.vue @@ -56,6 +56,11 @@ export default { this.updateResults(); this.saveQueryToHistory(); }, + updated() { + if (this.$route.query.search_query !== undefined) { + document.title = this.$route.query.search_query + " - Piped"; + } + }, activated() { this.handleRedirect(); window.addEventListener("scroll", this.handleScroll);