fix: #765 Page title was not being set

This commit is contained in:
jamesread
2025-11-29 21:16:23 +00:00
parent a91e903873
commit dca8e04518
5 changed files with 76 additions and 4 deletions

View File

@@ -128,7 +128,8 @@ const router = createRouter({
// Navigation guard to update page title
router.beforeEach((to, from, next) => {
if (to.meta && to.meta.title) {
document.title = to.meta.title + " - OliveTin"
const pageTitle = window.initResponse?.pageTitle || 'OliveTin'
document.title = to.meta.title + " - " + pageTitle
}
next()
})