\r\n\r\n\u003Cimg width=\"1728\" alt=\"釀夅叧釀忈叧釀呩叺釂剦釁a喓 2022-11-20 釀嬦叐釀掅叜 4 15 44\" src=\"https://user-images.githubusercontent.com/90916540/202890527-2a256b73-5b5c-4bd6-841e-7521f528f753.png\">\r\n\r\nBut when I remove `title`, page title does not change.\r\nAfter refresh, 'localhost:3000/' is shown rather than default title although `titleTemplate` function is called.\r\n\r\n\u003Cimg width=\"1728\" alt=\"釀夅叧釀忈叧釀呩叺釂剦釁a喓 2022-11-20 釀嬦叐釀掅叜 4 15 59\" src=\"https://user-images.githubusercontent.com/90916540/202890535-6bee38f5-2d44-4229-9237-2b6a0f56a5f2.png\">\r\n\r\nI'm not certain this is a bug or not.\r\nIf I miss something, How can I print 'Title' that located on third position of optional operator in `titleTemplate`?\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2061,2062,2065],{"name":1987,"color":1988},{"name":2063,"color":2064},"bug","d73a4a",{"name":2066,"color":2067},"upstream","E8A36D",15556,"titleTemplate is not working when titleChunk is undefined","2023-01-19T17:54:16Z","https://github.com/nuxt/nuxt/issues/15556",0.68749166,{"description":2074,"labels":2075,"number":2080,"owner":1993,"repository":1993,"state":1994,"title":2081,"updated_at":2082,"url":2083,"score":2084},"The following in nuxt.config doesn't work as expected:\r\n\r\n```\r\ntitleTemplate: titleChunk => titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js',\r\n```\r\n\r\nI think it might have something to do with the options not being brought into vue-meta properly ie. maybe options are being cloned in a way which removes functions?\r\n\r\nPR with failing test: #1961\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1691\">#c1691\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2076,2079],{"name":2077,"color":2078},"available soon","6de8b0",{"name":2017,"color":2018},1886,"titleTemplate with function not working","2023-01-18T15:42:46Z","https://github.com/nuxt/nuxt/issues/1886",0.68932456,{"description":2086,"labels":2087,"number":2092,"owner":1993,"repository":1993,"state":1994,"title":2093,"updated_at":2094,"url":2095,"score":2096},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.17.1`\r\n- Nuxt Version: `3.3.1`\r\n- Nitro Version: `2.3.1`\r\n- Package Manager: `npm@8.15.0`\r\n- Builder: `vite`\r\n- User Config: `app`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n### Reproduction\r\n\r\n1. Run `npx nuxi@latest init myapp` to create a stock Nuxt app\r\n2. Run `cd myapp`\r\n3. Run `npm i`\r\n4. Remove `app.vue`\r\n5. Add `titleTemplate: 'MyApp'` to the `nuxt.config.ts` app.head section\r\n6. Create `pages/index.vue` containing a template tag and `\u003Cscript setup lang=\"ts\">useHead({ title: 'Home' })\u003C/script>` to set the page title\r\n7. Run `npm run dev` and visit http://localhost:3000\r\n8. Observe that the page's title is \"MyApp\", reflecting the titleTemplate in `nuxt.config.ts`\r\n9. In `nuxt.config.ts`, change the titleTemplate to `titleTemplate: '%s - MyApp'` to use \"%s\" as indicated in [the docs](https://nuxt.com/docs/getting-started/seo-meta#title-template) to interpolate the `title` from `index.vue` to set the index page title to \"Home - MyApp\"\r\n10. Nuxt crashes into the debugger with exception `URIError: URI malformed` in `processTemplateParams` http://localhost:3000/_nuxt/node_modules/unhead/dist/index.mjs\r\n\r\nMinimal repro of the above:\r\n\r\nhttps://github.com/command-tab/nuxt331titleTemplateBug\r\n\r\n(I tried to create a repro using Stackblitz, and Nuxt indeed crashed there as well, but not in the right place. I think maybe Stackblitz's code is getting in the way.)\r\n\r\n### Describe the bug\r\n\r\nNuxt raises a `URIError: URI malformed` exception instead of properly interpolating the page title.\r\n\r\n### Additional context\r\n\r\nInterestingly, and perhaps critically, the exception happens under Chrome Version 111.0.5563.64 (current), but not Firefox 111.0 (current) or Safari 16.3 (current).\r\n\r\nThe crash also occurs if the `titleTemplate` containing %s is in `layouts/default.vue` instead of `nuxt.config.ts`, or even just `index.vue` itself right beside the `title`.\r\n\r\n### Logs\r\n\r\n_No response_",[2088,2089],{"name":1987,"color":1988},{"name":2090,"color":2091},"pending triage","E99695",19715,"Crash when using %s placeholder in titleTemplate","2023-03-16T16:38:23Z","https://github.com/nuxt/nuxt/issues/19715",0.69361323,{"labels":2098,"number":2101,"owner":1993,"repository":1993,"state":1994,"title":2102,"updated_at":2103,"url":2104,"score":2105},[2099,2100],{"name":1984,"color":1985},{"name":2017,"color":2018},6840,"Easy way to loop over and filter pages inside component.","2023-01-22T15:51:03Z","https://github.com/nuxt/nuxt/issues/6840",0.69692725,["Reactive",2107],{},["Set"],["ShallowReactive",2110],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"zEGlj1zJjDTyOW5rRFULR-rXhKKGuypYfu7MIm7wr-E":-1},"/nuxt/nuxt/10073"]