[{"data":1,"prerenderedAt":1010,"buildId":1011},["ShallowReactive",2],{"blog-nuxt-netlify-trailing-slash-redirect":3},{"id":4,"title":5,"body":6,"date":977,"description":978,"extension":979,"faq":980,"image":996,"isoDate":997,"meta":998,"navigation":505,"path":999,"readTime":1000,"seo":1001,"seoTitle":1002,"stem":1003,"tags":1004,"updated":977,"updatedIso":997,"__hash__":1009},"content\u002Fblog\u002Fnuxt-netlify-trailing-slash-redirect.md","Fixing 'Page with redirect' in Google Search Console (Nuxt + Netlify Trailing Slashes)",{"type":7,"value":8,"toc":964},"minimark",[9,22,31,36,44,72,75,79,94,104,120,157,172,176,187,257,264,268,289,360,369,405,412,428,432,435,462,475,529,532,542,546,561,578,688,698,702,711,717,779,800,804,807,859,873,877,880,905,912,918,922,933,944,948,960],[10,11,12,13,17,18,21],"p",{},"Today I fixed a set of \"Page with redirect\" warnings in Google Search Console on this portfolio. The cause was a mismatch between the URLs my Nuxt app linked to (",[14,15,16],"code",{},"\u002Fabout",") and the URLs Netlify actually serves (",[14,19,20],{},"\u002Fabout\u002F","). Every internal link, canonical tag and sitemap entry pointed at a URL that answered with a 301. The fix was small, but it touched five places, and missing any one of them would have left the problem half solved. This is the full write-up, with the real config from the commit.",[10,23,24,25,30],{},"If you want the bigger picture on Nuxt and search first, start with ",[26,27,29],"a",{"href":28},"\u002Fblog\u002Fnuxt-3-seo\u002F","Is Nuxt Good for SEO?",". This post is the deep dive on one specific problem.",[32,33,35],"h2",{"id":34},"the-symptom","The symptom",[10,37,38,39,43],{},"In Search Console, under ",[40,41,42],"strong",{},"Indexing > Pages",", the \"Why pages aren't indexed\" table had two rows that did not belong there:",[45,46,47,62],"ul",{},[48,49,50,53,54,57,58,61],"li",{},[40,51,52],{},"Page with redirect",", listing URLs like ",[14,55,56],{},"https:\u002F\u002Fsaymonakash.me\u002Fabout"," and ",[14,59,60],{},"https:\u002F\u002Fsaymonakash.me\u002Fblog\u002Fgsap-vue3",".",[48,63,64,67,68,71],{},[40,65,66],{},"Not found (404)",", for an old URL, ",[14,69,70],{},"\u002Fblog\u002Fabout-saymon-arefin-akash\u002F",", from an earlier version of the site.",[10,73,74],{},"\"Page with redirect\" on its own is not an error. It just means Google found a URL that redirects and indexed the target instead. The problem is where Google found those URLs: on my own site. If your navigation, your canonical tags and your sitemap all point at redirecting URLs, you are telling Google one thing and serving another. That wastes crawls and makes canonicalization less predictable.",[32,76,78],{"id":77},"the-cause-static-output-and-netlify","The cause: static output and Netlify",[10,80,81,82,85,86,89,90,93],{},"This site is a Nuxt 4 app built with ",[14,83,84],{},"nuxt generate"," and deployed as static files with the ",[14,87,88],{},"netlify-static"," Nitro preset. During prerendering, Nuxt writes each route as a folder with an ",[14,91,92],{},"index.html"," inside:",[95,96,102],"pre",{"className":97,"code":99,"language":100,"meta":101},[98],"language-text","dist\u002F\n  about\u002Findex.html\n  blog\u002Fgsap-vue3\u002Findex.html\n  contact\u002Findex.html\n","text","",[14,103,99],{"__ignoreMap":101},[10,105,106,107,110,111,113,114,116,117,119],{},"Netlify serves ",[14,108,109],{},"dist\u002Fabout\u002Findex.html"," at ",[14,112,20],{},". A request for ",[14,115,16],{},", without the slash, gets a 301 to ",[14,118,20],{},". You can see it with curl:",[95,121,125],{"className":122,"code":123,"language":124,"meta":101,"style":101},"language-bash shiki shiki-themes github-light github-dark","curl -sI https:\u002F\u002Fsaymonakash.me\u002Fabout | grep -iE '^(HTTP|location)'\n","bash",[14,126,127],{"__ignoreMap":101},[128,129,132,136,140,144,148,151,154],"span",{"class":130,"line":131},"line",1,[128,133,135],{"class":134},"sScJk","curl",[128,137,139],{"class":138},"sj4cs"," -sI",[128,141,143],{"class":142},"sZZnC"," https:\u002F\u002Fsaymonakash.me\u002Fabout",[128,145,147],{"class":146},"szBVR"," |",[128,149,150],{"class":134}," grep",[128,152,153],{"class":138}," -iE",[128,155,156],{"class":142}," '^(HTTP|location)'\n",[10,158,159,160,163,164,167,168,171],{},"Meanwhile, Nuxt's defaults produce URLs without a trailing slash everywhere: ",[14,161,162],{},"\u003CNuxtLink to=\"\u002Fabout\">"," renders ",[14,165,166],{},"href=\"\u002Fabout\"",", and my blog template built the canonical URL as ",[14,169,170],{},"${site.url}\u002Fblog\u002F${slug}",". So every link Google followed went through a redirect, and every canonical tag pointed at a URL that was not the final one.",[32,173,175],{"id":174},"step-1-tell-site-config-which-convention-you-use","Step 1: tell site config which convention you use",[10,177,178,179,182,183,186],{},"The Nuxt SEO modules (sitemap, robots, schema-org, seo-utils) read a shared site config. Its ",[14,180,181],{},"trailingSlash"," option, which defaults to ",[14,184,185],{},"false",", tells them whether the URLs they generate should end with a slash. I had already set it on this site:",[95,188,192],{"className":189,"code":190,"language":191,"meta":101,"style":101},"language-ts shiki shiki-themes github-light github-dark","\u002F\u002F nuxt.config.ts\nexport default defineNuxtConfig({\n  site: {\n    url: 'https:\u002F\u002Fsaymonakash.me',\n    trailingSlash: true,\n  },\n})\n","ts",[14,193,194,200,216,222,234,245,251],{"__ignoreMap":101},[128,195,196],{"class":130,"line":131},[128,197,199],{"class":198},"sJ8bj","\u002F\u002F nuxt.config.ts\n",[128,201,203,206,209,212],{"class":130,"line":202},2,[128,204,205],{"class":146},"export",[128,207,208],{"class":146}," default",[128,210,211],{"class":134}," defineNuxtConfig",[128,213,215],{"class":214},"sVt8B","({\n",[128,217,219],{"class":130,"line":218},3,[128,220,221],{"class":214},"  site: {\n",[128,223,225,228,231],{"class":130,"line":224},4,[128,226,227],{"class":214},"    url: ",[128,229,230],{"class":142},"'https:\u002F\u002Fsaymonakash.me'",[128,232,233],{"class":214},",\n",[128,235,237,240,243],{"class":130,"line":236},5,[128,238,239],{"class":214},"    trailingSlash: ",[128,241,242],{"class":138},"true",[128,244,233],{"class":214},[128,246,248],{"class":130,"line":247},6,[128,249,250],{"class":214},"  },\n",[128,252,254],{"class":130,"line":253},7,[128,255,256],{"class":214},"})\n",[10,258,259,260,263],{},"This is necessary but not enough. Site config does not change your ",[14,261,262],{},"\u003CNuxtLink>"," output, and it does not change URLs you build by hand in your own components. That was exactly my gap.",[32,265,267],{"id":266},"step-2-make-every-nuxtlink-append-a-slash","Step 2: make every NuxtLink append a slash",[10,269,270,271,273,274,277,278,280,281,284,285,288],{},"Nuxt lets you override the defaults for ",[14,272,262],{}," in ",[14,275,276],{},"nuxt.config.ts",". One of those options is ",[14,279,181],{},", which takes ",[14,282,283],{},"'append'"," or ",[14,286,287],{},"'remove'",":",[95,290,292],{"className":189,"code":291,"language":191,"meta":101,"style":101},"\u002F\u002F nuxt.config.ts\nexport default defineNuxtConfig({\n  \u002F\u002F Netlify serves prerendered pages at `\u002Fpath\u002F` and 301s `\u002Fpath` → `\u002Fpath\u002F`.\n  \u002F\u002F Make every \u003CNuxtLink> emit the trailing-slash URL so crawlers never hit\n  \u002F\u002F the redirect (Search Console \"Page with redirect\").\n  experimental: {\n    defaults: {\n      nuxtLink: { trailingSlash: 'append' },\n    },\n  },\n})\n",[14,293,294,298,308,313,318,323,328,333,344,350,355],{"__ignoreMap":101},[128,295,296],{"class":130,"line":131},[128,297,199],{"class":198},[128,299,300,302,304,306],{"class":130,"line":202},[128,301,205],{"class":146},[128,303,208],{"class":146},[128,305,211],{"class":134},[128,307,215],{"class":214},[128,309,310],{"class":130,"line":218},[128,311,312],{"class":198},"  \u002F\u002F Netlify serves prerendered pages at `\u002Fpath\u002F` and 301s `\u002Fpath` → `\u002Fpath\u002F`.\n",[128,314,315],{"class":130,"line":224},[128,316,317],{"class":198},"  \u002F\u002F Make every \u003CNuxtLink> emit the trailing-slash URL so crawlers never hit\n",[128,319,320],{"class":130,"line":236},[128,321,322],{"class":198},"  \u002F\u002F the redirect (Search Console \"Page with redirect\").\n",[128,324,325],{"class":130,"line":247},[128,326,327],{"class":214},"  experimental: {\n",[128,329,330],{"class":130,"line":253},[128,331,332],{"class":214},"    defaults: {\n",[128,334,336,339,341],{"class":130,"line":335},8,[128,337,338],{"class":214},"      nuxtLink: { trailingSlash: ",[128,340,283],{"class":142},[128,342,343],{"class":214}," },\n",[128,345,347],{"class":130,"line":346},9,[128,348,349],{"class":214},"    },\n",[128,351,353],{"class":130,"line":352},10,[128,354,250],{"class":214},[128,356,358],{"class":130,"line":357},11,[128,359,256],{"class":214},[10,361,362,363,163,365,368],{},"Now ",[14,364,162],{},[14,366,367],{},"\u003Ca href=\"\u002Fabout\u002F\">",". I did not have to touch a single template. If you only need it on one link, there is also a prop:",[95,370,374],{"className":371,"code":372,"language":373,"meta":101,"style":101},"language-vue shiki shiki-themes github-light github-dark","\u003CNuxtLink to=\"\u002Fabout\" trailing-slash>About\u003C\u002FNuxtLink>\n","vue",[14,375,376],{"__ignoreMap":101},[128,377,378,381,385,388,391,394,397,400,402],{"class":130,"line":131},[128,379,380],{"class":214},"\u003C",[128,382,384],{"class":383},"s9eBZ","NuxtLink",[128,386,387],{"class":134}," to",[128,389,390],{"class":214},"=",[128,392,393],{"class":142},"\"\u002Fabout\"",[128,395,396],{"class":134}," trailing-slash",[128,398,399],{"class":214},">About\u003C\u002F",[128,401,384],{"class":383},[128,403,404],{"class":214},">\n",[10,406,407,408,411],{},"The option lives under ",[14,409,410],{},"experimental.defaults",", and the Nuxt docs say these defaults may move somewhere else in the future, so check the docs when you upgrade.",[10,413,414,417,418,420,421,424,425,61],{},[14,415,416],{},"trailingSlash: 'append'"," only affects links rendered by ",[14,419,262],{},". Plain strings elsewhere are your job. In my case some project cards in a composable used ",[14,422,423],{},"url: '\u002Fexperiments'",", which I changed to ",[14,426,427],{},"'\u002Fexperiments\u002F'",[32,429,431],{"id":430},"step-3-fix-the-canonical-and-ogurl","Step 3: fix the canonical and og:url",[10,433,434],{},"This was the most important change. My blog post template built the canonical URL by hand, and it was missing the slash:",[95,436,440],{"className":437,"code":438,"language":439,"meta":101,"style":101},"language-diff shiki shiki-themes github-light github-dark"," \u002F\u002F pages\u002Fblog\u002F[slug].vue\n const site = useSiteConfig()\n-const canonical = `${site.url}\u002Fblog\u002F${route.params.slug}`\n+const canonical = `${site.url}\u002Fblog\u002F${route.params.slug}\u002F`\n","diff",[14,441,442,447,452,457],{"__ignoreMap":101},[128,443,444],{"class":130,"line":131},[128,445,446],{}," \u002F\u002F pages\u002Fblog\u002F[slug].vue\n",[128,448,449],{"class":130,"line":202},[128,450,451],{}," const site = useSiteConfig()\n",[128,453,454],{"class":130,"line":218},[128,455,456],{},"-const canonical = `${site.url}\u002Fblog\u002F${route.params.slug}`\n",[128,458,459],{"class":130,"line":224},[128,460,461],{},"+const canonical = `${site.url}\u002Fblog\u002F${route.params.slug}\u002F`\n",[10,463,464,465,468,469,57,472,288],{},"The same ",[14,466,467],{},"canonical"," value feeds both the ",[14,470,471],{},"\u003Clink rel=\"canonical\">",[14,473,474],{},"og:url",[95,476,478],{"className":189,"code":477,"language":191,"meta":101,"style":101},"useSeoMeta({\n  ogUrl: canonical,\n  \u002F\u002F ...title, description, images\n})\n\nuseHead({\n  link: [{ rel: 'canonical', href: canonical }],\n})\n",[14,479,480,487,492,497,501,507,514,525],{"__ignoreMap":101},[128,481,482,485],{"class":130,"line":131},[128,483,484],{"class":134},"useSeoMeta",[128,486,215],{"class":214},[128,488,489],{"class":130,"line":202},[128,490,491],{"class":214},"  ogUrl: canonical,\n",[128,493,494],{"class":130,"line":218},[128,495,496],{"class":198},"  \u002F\u002F ...title, description, images\n",[128,498,499],{"class":130,"line":224},[128,500,256],{"class":214},[128,502,503],{"class":130,"line":236},[128,504,506],{"emptyLinePlaceholder":505},true,"\n",[128,508,509,512],{"class":130,"line":247},[128,510,511],{"class":134},"useHead",[128,513,215],{"class":214},[128,515,516,519,522],{"class":130,"line":253},[128,517,518],{"class":214},"  link: [{ rel: ",[128,520,521],{"class":142},"'canonical'",[128,523,524],{"class":214},", href: canonical }],\n",[128,526,527],{"class":130,"line":335},[128,528,256],{"class":214},[10,530,531],{},"A canonical tag that points at a redirect is a contradictory signal: \"the real version of this page is that other URL\", and that other URL says \"no, go back over there\". Google usually works it out, but you should not make it guess. The rule is simple: the canonical must be the exact URL that returns a 200.",[10,533,534,535,538,539,541],{},"If you use ",[14,536,537],{},"nuxt-seo-utils"," without overriding the canonical yourself, it builds the canonical from your site config and the current route, so the ",[14,540,181],{}," setting from step 1 is what you want it to read. I set mine manually in this template, which is why I had to fix it manually.",[32,543,545],{"id":544},"step-4-check-the-sitemap-and-llmstxt","Step 4: check the sitemap and llms.txt",[10,547,548,549,552,553,556,557,560],{},"Your sitemap should list only final, indexable URLs. Open ",[14,550,551],{},"\u002Fsitemap.xml"," after a build and check every ",[14,554,555],{},"\u003Cloc>",". On this site, the sitemap is generated by ",[14,558,559],{},"@nuxtjs\u002Fsitemap"," from the auto-discovered pages plus a server source for the blog posts, and it reads the same site config.",[10,562,563,564,567,568,571,572,574,575,577],{},"I also generate ",[14,565,566],{},"\u002Fllms.txt"," with ",[14,569,570],{},"nuxt-llms",". Its links are plain strings in ",[14,573,276],{},", so ",[14,576,181],{}," does not touch them. I updated them by hand:",[95,579,581],{"className":189,"code":580,"language":191,"meta":101,"style":101},"\u002F\u002F nuxt.config.ts\nllms: {\n  sections: [\n    {\n      title: 'Portfolio',\n      links: [\n        { title: 'About', href: '\u002Fabout\u002F' },\n        { title: 'Projects', href: '\u002Fprojects\u002F' },\n        { title: 'Contact', href: '\u002Fcontact\u002F' },\n      ],\n    },\n  ],\n},\n",[14,582,583,587,595,603,608,618,623,639,653,667,672,676,682],{"__ignoreMap":101},[128,584,585],{"class":130,"line":131},[128,586,199],{"class":198},[128,588,589,592],{"class":130,"line":202},[128,590,591],{"class":134},"llms",[128,593,594],{"class":214},": {\n",[128,596,597,600],{"class":130,"line":218},[128,598,599],{"class":134},"  sections",[128,601,602],{"class":214},": [\n",[128,604,605],{"class":130,"line":224},[128,606,607],{"class":214},"    {\n",[128,609,610,613,616],{"class":130,"line":236},[128,611,612],{"class":214},"      title: ",[128,614,615],{"class":142},"'Portfolio'",[128,617,233],{"class":214},[128,619,620],{"class":130,"line":247},[128,621,622],{"class":214},"      links: [\n",[128,624,625,628,631,634,637],{"class":130,"line":253},[128,626,627],{"class":214},"        { title: ",[128,629,630],{"class":142},"'About'",[128,632,633],{"class":214},", href: ",[128,635,636],{"class":142},"'\u002Fabout\u002F'",[128,638,343],{"class":214},[128,640,641,643,646,648,651],{"class":130,"line":335},[128,642,627],{"class":214},[128,644,645],{"class":142},"'Projects'",[128,647,633],{"class":214},[128,649,650],{"class":142},"'\u002Fprojects\u002F'",[128,652,343],{"class":214},[128,654,655,657,660,662,665],{"class":130,"line":346},[128,656,627],{"class":214},[128,658,659],{"class":142},"'Contact'",[128,661,633],{"class":214},[128,663,664],{"class":142},"'\u002Fcontact\u002F'",[128,666,343],{"class":214},[128,668,669],{"class":130,"line":352},[128,670,671],{"class":214},"      ],\n",[128,673,674],{"class":130,"line":357},[128,675,349],{"class":214},[128,677,679],{"class":130,"line":678},12,[128,680,681],{"class":214},"  ],\n",[128,683,685],{"class":130,"line":684},13,[128,686,687],{"class":214},"},\n",[10,689,690,691,57,694,697],{},"Anywhere you write a URL as a string (config files, JSON-LD, markdown content, email templates), search for it after a change like this. I grep for ",[14,692,693],{},"href: '\u002F",[14,695,696],{},"to: '\u002F"," and read every hit.",[32,699,701],{"id":700},"step-5-301-the-old-url-that-returns-a-404","Step 5: 301 the old URL that returns a 404",[10,703,704,705,707,708,710],{},"The 404 in Search Console was a different problem with the same theme. An older version of the site had an about page at ",[14,706,70],{},". That page no longer exists, but Google still had it on record, and possibly some external sites still link to it. A 404 is the correct response for content that is really gone, but this content had moved to ",[14,709,20],{},", so a permanent redirect is the honest answer.",[10,712,713,714,288],{},"On a static Netlify site, the redirect goes in ",[14,715,716],{},"netlify.toml",[95,718,722],{"className":719,"code":720,"language":721,"meta":101,"style":101},"language-toml shiki shiki-themes github-light github-dark","# Old URL that Google still has on record — send it to the About page.\n[[redirects]]\n  from = \"\u002Fblog\u002Fabout-saymon-arefin-akash\"\n  to = \"\u002Fabout\u002F\"\n  status = 301\n  force = true\n\n[[redirects]]\n  from = \"\u002Fblog\u002Fabout-saymon-arefin-akash\u002F\"\n  to = \"\u002Fabout\u002F\"\n  status = 301\n  force = true\n","toml",[14,723,724,729,734,739,744,749,754,758,762,767,771,775],{"__ignoreMap":101},[128,725,726],{"class":130,"line":131},[128,727,728],{},"# Old URL that Google still has on record — send it to the About page.\n",[128,730,731],{"class":130,"line":202},[128,732,733],{},"[[redirects]]\n",[128,735,736],{"class":130,"line":218},[128,737,738],{},"  from = \"\u002Fblog\u002Fabout-saymon-arefin-akash\"\n",[128,740,741],{"class":130,"line":224},[128,742,743],{},"  to = \"\u002Fabout\u002F\"\n",[128,745,746],{"class":130,"line":236},[128,747,748],{},"  status = 301\n",[128,750,751],{"class":130,"line":247},[128,752,753],{},"  force = true\n",[128,755,756],{"class":130,"line":253},[128,757,506],{"emptyLinePlaceholder":505},[128,759,760],{"class":130,"line":335},[128,761,733],{},[128,763,764],{"class":130,"line":346},[128,765,766],{},"  from = \"\u002Fblog\u002Fabout-saymon-arefin-akash\u002F\"\n",[128,768,769],{"class":130,"line":352},[128,770,743],{},[128,772,773],{"class":130,"line":357},[128,774,748],{},[128,776,777],{"class":130,"line":678},[128,778,753],{},[10,780,781,782,785,786,788,789,791,792,794,795,797,798,61],{},"I added both versions, with and without the slash, so either form of the old URL lands on the right page in one hop. ",[14,783,784],{},"force = true"," makes Netlify apply the rule even if a file exists at that path. Note that the target, ",[14,787,20],{},", already has the trailing slash. Redirecting to ",[14,790,16],{}," would create a redirect chain: old URL to ",[14,793,16],{},", then ",[14,796,16],{}," to ",[14,799,20],{},[32,801,803],{"id":802},"step-6-verify-before-you-deploy","Step 6: verify before you deploy",[10,805,806],{},"Before pushing, I check four things on the generated output:",[808,809,810,831,842,853],"ol",{},[48,811,812,815,816,818,819,822,823,826,827,830],{},[40,813,814],{},"Internal links."," Run ",[14,817,84],{},", open a few pages from ",[14,820,821],{},"dist\u002F",", and confirm ",[14,824,825],{},"href"," values end with ",[14,828,829],{},"\u002F",". View Source, not DevTools, because you want the server HTML.",[48,832,833,836,837,57,839,61],{},[40,834,835],{},"Canonical and og:url."," Same pages, check ",[14,838,471],{},[14,840,841],{},"\u003Cmeta property=\"og:url\">",[48,843,844,847,848,273,850,852],{},[40,845,846],{},"Sitemap."," Every ",[14,849,555],{},[14,851,551],{}," uses the final URL.",[48,854,855,858],{},[40,856,857],{},"Redirects."," After deploy, curl the old URL and the no-slash version of a page and confirm there is exactly one 301 to the right place.",[10,860,534,861,864,865,868,869,872],{},[14,862,863],{},"@nuxtjs\u002Fseo",", it includes ",[14,866,867],{},"nuxt-link-checker",", which has a ",[14,870,871],{},"trailing-slash"," rule that flags internal links that do not match your site config. It is a good safety net for this exact bug.",[32,874,876],{"id":875},"step-7-validate-fix-in-search-console","Step 7: Validate Fix in Search Console",[10,878,879],{},"Once the fix is live:",[808,881,882,888,894,900],{},[48,883,884,885,887],{},"Open ",[40,886,42],{}," in Search Console.",[48,889,890,891,893],{},"Click the ",[40,892,52],{}," row.",[48,895,896,897,61],{},"Click ",[40,898,899],{},"Validate Fix",[48,901,902,903,61],{},"Do the same for ",[40,904,66],{},[10,906,907,908,911],{},"Validation tells Google to recrawl the affected URLs. It is not instant. Google says it can take up to about two weeks, and on a small personal site that Google does not crawl often, it can take longer. You can also use the URL Inspection tool on a couple of key pages and click ",[40,909,910],{},"Request Indexing"," to speed those up.",[10,913,914,915,917],{},"Expect the redirecting URLs to stay in the \"Page with redirect\" report for a while. That is fine. The bare ",[14,916,16],{}," URL will always redirect, and Google will keep listing it as long as it knows about it. What matters is that the trailing-slash versions show up as indexed, and that nothing on your own site points at the redirecting version anymore.",[32,919,921],{"id":920},"what-i-would-do-differently","What I would do differently",[10,923,924,925,927,928,57,931,61],{},"I should have picked the URL convention on day one and checked it against the host before writing any links. The lesson generalizes beyond Netlify: find out what URL your host returns a 200 for, then make links, canonicals, ",[14,926,474],{},", the sitemap and structured data all agree with it. If your host serves URLs without a slash, the same fix works with ",[14,929,930],{},"trailingSlash: false",[14,932,287],{},[10,934,935,936,939,940,61],{},"This is one of those problems that a framework cannot solve for you, because it depends on where you deploy. I cover the other things to get right in ",[26,937,938],{"href":28},"the complete Nuxt SEO guide",", and if you are weighing frameworks, the trailing-slash defaults are one of the differences I mention in ",[26,941,943],{"href":942},"\u002Fblog\u002Fnuxt-vs-nextjs-seo\u002F","Nuxt vs Next.js for SEO",[32,945,947],{"id":946},"need-help","Need help?",[10,949,950,951,284,955,959],{},"If Search Console is full of redirect, canonical or \"Crawled, currently not indexed\" warnings on your Nuxt site, I can help track them down. Have a look at my ",[26,952,954],{"href":953},"\u002Fservices\u002F","services",[26,956,958],{"href":957},"\u002Fcontact\u002F","contact me"," with a screenshot of your Pages report.",[961,962,963],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":101,"searchDepth":202,"depth":202,"links":965},[966,967,968,969,970,971,972,973,974,975,976],{"id":34,"depth":202,"text":35},{"id":77,"depth":202,"text":78},{"id":174,"depth":202,"text":175},{"id":266,"depth":202,"text":267},{"id":430,"depth":202,"text":431},{"id":544,"depth":202,"text":545},{"id":700,"depth":202,"text":701},{"id":802,"depth":202,"text":803},{"id":875,"depth":202,"text":876},{"id":920,"depth":202,"text":921},{"id":946,"depth":202,"text":947},"Dec 01, 2026","How I fixed \"Page with redirect\" in Google Search Console on a Nuxt site hosted on Netlify: trailing-slash links, canonical tags, sitemap and 301s.","md",[981,984,987,990,993],{"q":982,"a":983},"What does Page with redirect mean in Google Search Console?","It means Google found a URL that redirects somewhere else, so it indexed the destination instead of that URL. It is not an error by itself, but if the redirecting URLs come from your own links, canonical tags or sitemap, you are sending Google mixed signals.",{"q":985,"a":986},"Why does Netlify redirect my Nuxt pages to a trailing slash?","When you prerender a Nuxt site with nuxt generate, each page is written as a folder with an index.html file. Netlify serves that file at the URL with a trailing slash and redirects the version without the slash to it.",{"q":988,"a":989},"How do I make NuxtLink add a trailing slash?","Set experimental.defaults.nuxtLink.trailingSlash to append in nuxt.config.ts. Every NuxtLink then renders its href with a trailing slash. You can also use the trailing-slash prop on a single link.",{"q":991,"a":992},"Should my canonical URL have a trailing slash?","Your canonical URL should be the exact URL your server returns with a 200 status. On a Netlify static Nuxt site that is the trailing-slash version, so the canonical, og:url, sitemap and internal links should all end with a slash.",{"q":994,"a":995},"How long does Validate Fix take in Search Console?","It depends on how often Google crawls your site, and Google says validation can take up to about two weeks or longer. Small sites with few pages may need longer, because Google recrawls them less often.",null,"2026-12-01",{},"\u002Fblog\u002Fnuxt-netlify-trailing-slash-redirect","7 min read",{"title":5,"description":978},"Fix Page with Redirect: Nuxt + Netlify","blog\u002Fnuxt-netlify-trailing-slash-redirect",[1005,1006,1007,1008],"Nuxt","SEO","Netlify","Google Search Console","_k3oRK-Wbo6XtaA2jkk2f48-A-xWdUTHX_oq5rxT-RI",1796131304899,"5169000f-b987-4c82-886e-026092acdff2"]