\n \u003C/UButton>\n\n \u003CUButton color=\"gray\" variant=\"ghost\" @click=\"continue\">\n Continue\n \u003CUIcon name=\"i-mdi-arrow-right-circle\" class=\"text-primary\" />\n \u003C/UButton>\n \u003C/div>\n \u003C/UCard>\n \u003C/UModal>\n```",[1984,1987],{"name":1985,"color":1986},"question","d876e3",{"name":1988,"color":1989},"stale","ededed",3187,"nuxt","ui","open","[V2] How to prevent button pre-selection on UModal?","2025-03-09T01:50:32Z","https://github.com/nuxt/ui/issues/3187",0.7262384,{"description":1999,"labels":2000,"number":2004,"owner":1991,"repository":1991,"state":1993,"title":2005,"updated_at":2006,"url":2007,"score":2008},"### Environment\n\n````\r\n------------------------------\r\n- Operating System: Ubuntu 20.04.4 LTS\r\n- Node Version: v20.11.0\r\n- Nuxt Version: 3.12.3\r\n- CLI Version: 3.12.0\r\n- Nitro Version: -\r\n- Package Manager: pnpm@8.1.0\r\n- Builder: -\r\n- User Config: compatibilityDate, devtools\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n````\n\n### Reproduction\n\nhttps://stackblitz.com/~/github.com/martinszeltins/nuxt-ducks\n\n### Describe the bug\n\nI wanted to refresh / reload my page but not the hard way - I did not want to call `location.reload`. I want to do the same thing that would be done if I navigated AWAY from the current page and then came back to it. The page would be reset, all data would be cleared.\r\n\r\nSo I change the `key` for my page which should cause it to reload but it's not happening. When the key is changed, it does not reload/refresh the page. For example, the `name` ref is not cleared.\r\n\r\n```vue\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CShipment />\r\n\r\n \u003Cdiv>\u003CNuxtLink to=\"/\">HOME\u003C/NuxtLink>\u003C/div>\r\n \u003Cdiv>\u003CNuxtLink to=\"/?name=roro\">/?name=roro\u003C/NuxtLink>\u003C/div>\r\n \u003Cdiv>\u003CNuxtLink to=\"/about\">About\u003C/NuxtLink>\u003C/div>\r\n\r\n \u003Cul>\r\n \u003Cli>Enter a name in the input field above\u003C/li>\r\n \u003Cli>Click on the ?name=roro link\u003C/li>\r\n \u003Cli>Click on the HOME link\u003C/li>\r\n \u003Cli>The page should be re-rendered and reset but it's not happening. The input should be cleared.\u003C/li>\r\n \u003C/ul>\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\n const route = useRoute()\r\n\r\n onBeforeRouteUpdate(to => {\r\n // Refresh the page (not hard refresh)!\r\n if (to.fullPath === '/') {\r\n route.meta.pageKey = 'test'\r\n\r\n document.querySelector('#logs')!.textContent = document.querySelector('#logs')!.textContent + 'Changing page key, it should re-render the page and clear all data...'\r\n }\r\n })\r\n\r\n definePageMeta({ key: (route) => route.meta.pageKey })\r\n\u003C/script>\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2001],{"name":2002,"color":2003},"pending triage","E99695",28086,"Changing `key` on page does not re-render it","2024-08-28T20:39:13Z","https://github.com/nuxt/nuxt/issues/28086",0.7630763,{"description":2010,"labels":2011,"number":2013,"owner":1991,"repository":1992,"state":2014,"title":2015,"updated_at":2016,"url":2017,"score":2018},"### Description\r\n\r\nHi, is there any way to disable the error template? \r\n\r\nI just tried to set an empty template, but this creates a div with some classes that create a slight jump because of the set class mt-2... and overwriting from the template is also not possible...\r\n\r\nI need to do this because I need to show some custom logic where error messages are used as hints.\r\n\r\ncheers,\r\ngregor",[2012],{"name":1985,"color":1986},2100,"closed","disabling formgroup error template","2024-09-03T08:41:36Z","https://github.com/nuxt/ui/issues/2100",0.7237762,{"description":2020,"labels":2021,"number":2029,"owner":1991,"repository":1992,"state":2014,"title":2030,"updated_at":2031,"url":2032,"score":2033},"### Description\n\nHello 👋 \n\nis it possible to change the aria label (hardcoded aria-label=\"Switch to light mode\") to something else? It did not work to set it directly on the component and it does not react to different languages. I need it for a german website.\n\nBR",[2022,2023,2026],{"name":1985,"color":1986},{"name":2024,"color":2025},"v3","49DCB8",{"name":2027,"color":2028},"pro","5BD3CB",3696,"ColorModeSwitch aria label","2025-03-26T14:25:58Z","https://github.com/nuxt/ui/issues/3696",0.7486338,{"labels":2035,"number":2040,"owner":1991,"repository":1991,"state":2014,"title":2041,"updated_at":2042,"url":2043,"score":2044},[2036,2037],{"name":2002,"color":2003},{"name":2038,"color":2039},"2.x","d4c5f9",5362,"Page flickers/jumps to top before navigating to new page","2023-01-22T15:33:04Z","https://github.com/nuxt/nuxt/issues/5362",0.7487246,{"description":2046,"labels":2047,"number":2055,"owner":1991,"repository":1991,"state":2014,"title":2056,"updated_at":2057,"url":2058,"score":2059},"### Environment\n\ndevelopment\n\n### Reproduction\n\ntest\n\n### Describe the bug\n\nThe router redirects me to index page, when I am on other page. I stay on some other page => reload=>redirects to index page\n\n### Additional context\n\n`if (to.path.startsWith(\"/admin\")) {\r\n if (role !== \"Admin\") {\r\n console.error(\"Unauthorized access to admin page attempted!\");\r\n return navigateTo(\"/\");\r\n } else {\r\n if (to.fullPath === from.fullPath) {\r\n return;\r\n }\r\n }\r\n }`\r\n\r\nif I am on the admin page and reload I should stay on admin page, but it redirects me to the index page\n\n### Logs\n\n_No response_",[2048,2051,2052],{"name":2049,"color":2050},"3.x","29bc7f",{"name":2002,"color":2003},{"name":2053,"color":2054},"needs reproduction","FBCA04",26328,"On page reload redirects to index page","2024-03-18T13:59:14Z","https://github.com/nuxt/nuxt/issues/26328",0.74891096,{"description":2061,"labels":2062,"number":2065,"owner":1991,"repository":1991,"state":2014,"title":2066,"updated_at":2067,"url":2068,"score":2069},"### Environment\r\n\r\nrc-13\r\nnode 18\r\n\r\n### Reproduction\r\n\r\ni have paginate component...\r\n```javascript\r\n\u003Cpaginate v-model=\"page\" :page-range=\"limit\" :page-count=\"pages\" :click-handler=\"getAllItems\" prev-text=\"Prev\" next-text=\"Next\" container-class=\"pagination\" page-class=\"page-item\"> \u003C/paginate>\r\n```\r\n\r\n```javascript\r\nasync function getAllItems() {\r\n let response = await myfetch('/store/storeCourses', {\r\n method: 'GET',\r\n query:{\r\n page:page.value ,\r\n storeCourseGroup:storeCourseGroup.value,\r\n limit:limit.value\r\n }\r\n });\r\n \r\n if (response.data)\r\n list.value = response.data.docs;\r\n pages.value = response.data.pages;\r\n}\r\nconst myfetch = async (url,options,emits) => { \r\n\r\n const { data, pending, error, refresh } = await useFetch(url, {\r\n key : hash(['api-fetch', url, options]),\r\n baseURL: useRuntimeConfig().API_URL, \r\n initialCache: false,\r\n headers: new Headers({ 'authorization': (process.client)?localStorage.getItem(\"token\"):''}),\r\n ...options,\r\n onResponse ({ response }) {\r\n return response._data\r\n },\r\n onResponseError ({ response }) {\r\n return response._data\r\n }\r\n });\r\n const resData = data.value;\r\n return resData;\r\n \r\n }\r\n\r\n```\r\n\r\n\r\n\r\n\r\n\r\n### Describe the bug\r\n\r\non page load it shows { 2 } instead of { Next }\r\n\r\n\r\nbut if i go to other page and come back to home site, it shows correctly\r\n\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_",[2063,2064],{"name":2049,"color":2050},{"name":2002,"color":2003},15473,"useFetch amazing behavior, change innerText","2023-01-19T17:51:25Z","https://github.com/nuxt/nuxt/issues/15473",0.7503798,{"description":2071,"labels":2072,"number":2077,"owner":1991,"repository":1991,"state":2014,"title":2078,"updated_at":2079,"url":2080,"score":2081},"### Environment\n\n \"nuxt\": \"^3.9.1\",\n\n### Reproduction\n\nhttps://salomhayot.uz/product/samsung-a16-6128-gray-4316\n\n### Describe the bug\n\nhttps://salomhayot.uz/product/samsung-a16-6128-gray-4316 on refresh redirecting home page \n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2073,2074,2075],{"name":2002,"color":2003},{"name":2053,"color":2054},{"name":2076,"color":1989},"closed-by-bot",30778,"on refresh redirecting home page","2025-02-04T01:58:29Z","https://github.com/nuxt/nuxt/issues/30778",0.7510724,{"description":2083,"labels":2084,"number":2087,"owner":1991,"repository":1991,"state":2014,"title":2088,"updated_at":2089,"url":2090,"score":2091},"### Environment\n\ntest\n\n### Reproduction\n\nRefresh the page.\r\nObserve that it automatically redirects to the login page.\r\nCheck the console for any logged errors or unexpected behavior.\n\n### Describe the bug\n\n```\r\nexport default defineNuxtRouteMiddleware(async (_to, _from, next) => {\r\n const isAdmin = authAdmin();\r\n if (!isAdmin) return navigateTo({ name: \"login\" });\r\n});\r\n```\r\n\r\nThe current code has a bug that causes unexpected behavior and redirects to the login page when the page is refreshed. The issue stems from the fact that the authAdmin() function is not awaited before proceeding with the rest of the code execution. \r\n\r\nI've tried to access cookies or localStorage immediately but it works only without navigateTo.\r\n\r\nWhen the navigateTo function is used, the response data is not being logged in the console. This behavior could be related to the implementation of the navigateTo function or other factors within the application.\r\n\r\nTo reproduce the bug, follow these steps:\r\n\r\nRefresh the page.\r\nObserve that it automatically redirects to the login page.\r\n\r\nThe page should not automatically redirect to the login page when refreshed.\r\nAccessing cookies or localStorage should work as expected after calling authAdmin().\r\nThe response data should be logged in the console when using the navigateTo function.\r\n\r\nAny suggestions how to fix this one?\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2085,2086],{"name":2049,"color":2050},{"name":2002,"color":2003},21250,"Page refresh triggers Automatic Redirect to Login Page and Prevents console logging (middleware + pinia)","2023-05-30T10:42:38Z","https://github.com/nuxt/nuxt/issues/21250",0.75134176,{"description":2093,"labels":2094,"number":2096,"owner":1991,"repository":1991,"state":2014,"title":2097,"updated_at":2098,"url":2099,"score":2100},"When you're not on an index page (a sibling page) and refresh the page, the page routing content does not stay/load and will not show the routing content or will redirect you to the index page with the url or the previous routed page name.\r\n\r\nYou can go to thinkcreateenjoy.co to see this happen.\r\n\r\nThe \"about\" page will not load or cache the routed content after the page is refreshed.\r\n\r\nThe \"recent project\" section is a component and each project page refreshed will redirect to the index page with the url of the project page.\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/c1263\">#c1263\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2095],{"name":2038,"color":2039},1420,"Page refresh breaks routing content","2023-01-18T15:41:44Z","https://github.com/nuxt/nuxt/issues/1420",0.75149244,["Reactive",2102],{},["Set"],["ShallowReactive",2105],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"kKKerEpxI5uWFrjEsuAO9pU64pf3HvR9tbQc0rDWgTU":-1},"/nuxt/ui/2447"]