diff --git a/src/renderer/views/Post/Post.vue b/src/renderer/views/Post/Post.vue index 6d366cb4daa81..2e5ea34525073 100644 --- a/src/renderer/views/Post/Post.vue +++ b/src/renderer/views/Post/Post.vue @@ -36,6 +36,7 @@ import FtLoader from '../../components/ft-loader/ft-loader.vue' import WatchVideoComments from '../../components/watch-video-comments/watch-video-comments.vue' import store from '../../store/index' import { useRoute, useRouter } from 'vue-router/composables' +import packageDetails from '../../../../package.json' import { getInvidiousCommunityPost } from '../../helpers/api/invidious' const router = useRouter() @@ -71,6 +72,8 @@ onMounted(async () => { async function loadDataInvidiousAsync() { post.value = await getInvidiousCommunityPost(id.value, authorId.value) authorId.value = post.value.authorId + + store.dispatch('setAppTitle', `${post.value.author} - ${packageDetails.productName}`) isLoading.value = false // If the authorId is missing from the URL we should add it, diff --git a/src/renderer/views/Search/Search.js b/src/renderer/views/Search/Search.js index 04f1467857cc4..472bf26605b9c 100644 --- a/src/renderer/views/Search/Search.js +++ b/src/renderer/views/Search/Search.js @@ -78,12 +78,13 @@ export default defineComponent({ this.query = query - this.setAppTitle(`${this.query} - ${packageDetails.productName}`) + this.setAppTitle(`${this.query} - ${packageDetails.productName}`) this.checkSearchCache(payload) } }, mounted: function () { this.query = this.$route.params.query + this.setAppTitle(`${this.query} - ${packageDetails.productName}`) let features = this.$route.query.features // if page gets refreshed and there's only one feature then it will be a string