","2024-06-14T16:02:02Z","https://github.com/nuxt/nuxt/issues/10412",0.76131076,{"description":2079,"labels":2080,"number":2082,"owner":1994,"repository":1994,"state":2073,"title":2083,"updated_at":2084,"url":2085,"score":2086},"Hi. I have small script in my default layout\r\n\r\n```js\r\nmounted () {\r\n let links = document.querySelectorAll('a[href]:not([href^=mailto]):not([class^=addfollow])')\r\n console.log(links)\r\n for (let i = 0; i \u003C links.length; i++) {\r\n if (links[i].hostname != window.location.hostname) {\r\n links[i].target = '_blank'\r\n links[i].rel = 'noopener nofollow noreferrer'\r\n }\r\n }\r\n }\r\n```\r\nThis adds `target=\"_blank\"` to all links on the page.\r\nIt works fine, but when I hit 404 (I have 404 layout for that) and after returning back - scripts doesn't work, all links remains unchanged.\r\n\r\nIs there's the way to fix this? Where shoould I put such scripts using Nuxt? Maybe placing it in `default.vue` layout is not good idea?\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/c2528\">#c2528\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2081],{"name":2070,"color":2071},2912,"How to replace attributes in links?","2023-01-18T16:09:43Z","https://github.com/nuxt/nuxt/issues/2912",0.7687803,{"labels":2088,"number":2102,"owner":1994,"repository":1994,"state":2073,"title":2103,"updated_at":2104,"url":2105,"score":2106},[2089,2090,2093,2096,2099],{"name":1985,"color":2059},{"name":2091,"color":2092},"good first issue","fbca04",{"name":2094,"color":2095},"types","2875C3",{"name":2097,"color":2098},"3.x","29bc7f",{"name":2100,"color":2101},"dx","C39D69",15148,"Autocompletion for the `target` attribute of the `\u003CNuxtLink>` component","2023-01-19T17:45:16Z","https://github.com/nuxt/nuxt/issues/15148",0.77650577,{"description":2108,"labels":2109,"number":2115,"owner":1994,"repository":1995,"state":2073,"title":2116,"updated_at":2117,"url":2118,"score":2119},"### Environment\n\n- Node version: `22.13`\n- Nuxt version: `3.15`\n\n### Is this bug related to Nuxt or Vue?\n\nNuxt\n\n### Version\n\nv3.0.0-alpha.11\n\n### Reproduction\n\nhttps://codesandbox.io/p/devbox/affectionate-sky-8vxn4g\n\n### Description\n\nWhen using `compatibilityVersion: 4`, the `dir` in `icon.customCollections` should be absolute path (`./app/assets/icons`):\n```\n✔ Nuxt Icon loaded local collection custom with 1 icons\n```\n\nOtherwise, when using `~/assets/icons`, it doesn't find any icon:\n```\n✔ Nuxt Icon loaded local collection custom with 0 icons\n```\n\n\n\n### Additional context\n\nnuxt.config.ts\n```js\nexport default defineNuxtConfig({\n modules: [\"@nuxt/ui\"],\n devtools: { enabled: true },\n compatibilityDate: \"2024-12-19\",\n future: {\n compatibilityVersion: 4,\n },\n icon: {\n customCollections: [\n {\n prefix: \"custom\",\n dir: \"~/assets/icons\", // not working\n // dir: \"./app/assets/icons\", // it works\n },\n ],\n },\n});\n```\n\n### Logs\n\n```shell-script\n\n```",[2110,2111,2112],{"name":2022,"color":2023},{"name":1988,"color":1989},{"name":2113,"color":2114},"upstream","78bddb",3133,"Custom icon collection path bug when using Nuxt v4 directory structure","2025-03-26T15:17:29Z","https://github.com/nuxt/ui/issues/3133",0.7788243,["Reactive",2121],{},["Set"],["ShallowReactive",2124],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"RvPa2zMQq-nvphyRsKRg7X3lSK2RioPydtQNIukmYdY":-1},"/nuxt/ui/3089"]