","2024-06-14T16:02:02Z","https://github.com/nuxt/nuxt/issues/10412",0.6715352,{"description":2048,"labels":2049,"number":2052,"owner":1988,"repository":1988,"state":2022,"title":2053,"updated_at":2054,"url":2055,"score":2056},"### Version\n\n[v2.4.1](https://github.com/nuxt.js/releases/tag/v2.4.1)\n\n### Steps to reproduce\n\n`yarn create nuxt-app test_nuxt && cd test_nuxt` (I selected express and not much else)\n\nDrop ```router: {\n base: \"/%C3%B6l/\",\n }``` \nintro you nuxt config. start a dev server. go to http://localhost:3000/öl. \n\n### What is expected ?\n\nI expect the site to load properly from the /öl url. \n\n### What is actually happening?\n\nyou may see the page blink and disappear with a DOM tree mismatch hydration error in the console. mode: 'spa' doesn't work at all (it can't find the page). base addresses without weird characters work fine. \n\nmy live nuxt site running at https://litteraturbanken.se/översättarlexikon/ exhibits another symptom: using the back button at any time throws up the 404 page. cannot reproduce this with a minimal example, however. \n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c8606\">#c8606\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2050,2051],{"name":1985,"color":1986},{"name":2019,"color":2020},4948,"router.base value with Extended unicode (åäö) fails","2023-01-22T15:33:01Z","https://github.com/nuxt/nuxt/issues/4948",0.6745155,{"description":2058,"labels":2059,"number":2061,"owner":1988,"repository":1988,"state":2022,"title":2062,"updated_at":2063,"url":2064,"score":2065},"### Describe the feature\n\nvite config supports `base: \"./\"`\r\n\r\nThe resulting html is like this. \r\n\r\n```html\r\n\u003Cscript type=\"module\" crossorigin src=\"./assets/index-CgobQE0i.js\">\u003C/script>\r\n\u003Clink rel=\"stylesheet\" crossorigin href=\"./assets/index-yVtaL3pq.css\">\r\n```\r\n\r\nIn nuxt config, using a relative path doesn't work. \r\nIn some circumstances I don't know the url prefix, a relative path is helpful.\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[2060],{"name":1985,"color":1986},28310,"Allow `baseURL` with relative path in `nuxt.config.ts`","2024-08-14T10:07:42Z","https://github.com/nuxt/nuxt/issues/28310",0.6769537,{"description":2067,"labels":2068,"number":2080,"owner":1988,"repository":1988,"state":2022,"title":2081,"updated_at":2082,"url":2083,"score":2084},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v18.16.1\r\n- Nuxt Version: 3.7.4\r\n- CLI Version: 3.9.0\r\n- Nitro Version: 2.6.3\r\n- Package Manager: pnpm@8.7.6\r\n- Builder: -\r\n- User Config: app\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-uon84v\r\n\r\n### Describe the bug\r\n\r\nWhat I do\r\n1. set app.baseURL in nuxt.config.ts,\r\n2. write a NuxtLink with target=\"_blank\", and prop \"to\" equals path start with slash, which linked to another page in project.\r\n\r\nThen the rendered \u003Ca> tag's href doesn't prefixed with the value of app.baseURL.\r\n\r\nBut if I remove target=\"_blank\", or remove the start slash of path, final link prefixed with baseURL, which is as expect\r\n\r\nIs there any mistask I made? Or it is a bug?\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2069,2070,2073,2074,2077,2078],{"name":1998,"color":1999},{"name":2071,"color":2072},"3.x","29bc7f",{"name":2001,"color":2002},{"name":2075,"color":2076},"pages","00DFB5",{"name":2004,"color":2005},{"name":2079,"color":1999},"✨ good reproduction",23737,"NuxtLink with target=\"_blank\" doesn't render correctly","2023-10-20T15:33:47Z","https://github.com/nuxt/nuxt/issues/23737",0.67700887,{"description":2086,"labels":2087,"number":2089,"owner":1988,"repository":1988,"state":2022,"title":2090,"updated_at":2091,"url":2092,"score":2093},"Is it possible to have router.base be a dynamic value, rather than hard-coded into config?\r\n\r\nIn my case, I am using express to run the nuxt app on multiple mountpoints (actually a dynamic slug mountpoint):\r\n```js\r\napp.use('/:slug', slugMiddleware, nuxt.render)\r\n```\r\n\r\nSo `base` needs to change to the value of `:slug`, but it appears that doing so is almost impossible.\r\n\r\n`router.base` needs to be updated, as does the `\u003Cbase href=\"...\">`. Doing so in the nuxt app by looking at `req.params.slug` only works on server side, and not client.\r\n\r\nI have tried the following with no luck:\r\n\r\n```js\r\nfunction slugRouter(req, res) {\r\n // build a dynamic router\r\n const config = Object.assign({}, nuxtConfig)\r\n config.router.base = `${req.params.slug || ''}/`\r\n const nuxt = new Nuxt(config)\r\n nuxt.render(req, res)\r\n}\r\napp.user('/:slug', slugMiddleware, slugRouter)\r\n```\r\n\r\nAnd I would rather not have `:slug` as part of the nuxt app by ading a top `/_slug` directory in pages, as I need to be able to have a PWA for each individual slug, rather than the whole site.\r\n\r\nEach slug is a unique customer.\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1585\">#c1585\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2088],{"name":2019,"color":2020},1765,"Need ability to set nuxt app base url based on express mountpoint","2023-01-18T15:54:44Z","https://github.com/nuxt/nuxt/issues/1765",0.68061703,{"labels":2095,"number":2104,"owner":1988,"repository":1988,"state":2022,"title":2105,"updated_at":2106,"url":2107,"score":2108},[2096,2097,2098,2101],{"name":2071,"color":2072},{"name":2001,"color":2002},{"name":2099,"color":2100},"nitro","bfd4f2",{"name":2102,"color":2103},"upstream","E8A36D",13810,"Prerendering doesn't respect `baseURL`","2025-01-13T11:06:17Z","https://github.com/nuxt/nuxt/issues/13810",0.6845206,["Reactive",2110],{},["Set"],["ShallowReactive",2113],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"btb7jXzKVi3ifRUv8V4LvB2bCEWQB_R1aUYPnxIdYig":-1},"/nuxt/nuxt/712"]