When I set useHead in app.vue, the webpage title does not change after leaving the content-related page
Environment
------------------------------
- Operating System: Windows_NT
- Node Version: v20.9.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: modules, alias, vite, components, experimental, css, scripts, imports, nitro, routeRules, devServer, site, content, app, devtools, device, features, eslint, arco, compatibilityDate, future
- Runtime Modules: @vueuse/[email protected], @unocss/[email protected], @pinia/[email protected], @nuxtjs/[email protected], @nuxt/[email protected], [email protected], @nuxt/[email protected], @nuxt/[email protected], @censujiang/vite-plugin-version-mark/[email protected], [email protected], @nuxt/[email protected], @nuxtjs/[email protected], @nuxtjs/[email protected], @nuxtjs/[email protected], @vueuse/motion/[email protected]
- Build Modules: -
------------------------------
Reproduction
https://stackblitz.com/edit/github-3pgxeg?file=app.vue
Describe the bug
As the title says, please open the link I provided to minimize the problem. When visiting /about, the title is the one set in app.vue. Please click the text on this page to navigate to the / page (this page is supported by content). The page title is the one set in the corresponding file, but the page title will not change when navigating to /about again. Summary: After browsing the content-related page, browsing other pages will not change to the corresponding title
Additional context
No response
Logs
No response
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
I am also having the same issue. The useHead works in layouts but not in app.vue. Also this also applies to titleTemplate, or anything such as meta, link, htmlAttrs etc., simply useHead isn't working at all in app.vue. Has anyone been able to fix this? Or are we not supposed to call useHead from app.vue?
Edit: Also I think this is a nuxt problem rather than nuxt/content. I don't have nuxt/content and still have the same issue.