mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-14 01:55:39 +00:00
fix: #765 Page title was not being set
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user