From f6c80bf440a2d6bdcf8fcd543c9dc86d381f0aca Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 7 Oct 2026 18:36:19 +0800 Subject: [PATCH] fix: drop noindex from category redirect stubs Redirect stubs for renamed category URLs carried a robots noindex meta, so Search Console filed them under "Excluded by 'noindex' tag" instead of treating the instant meta refresh as a permanent redirect, and the old URLs' ranking was not passed to the new pages. Co-Authored-By: Claude --- website/templates/redirect.html | 1 - website/tests/test_build.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/website/templates/redirect.html b/website/templates/redirect.html index 292c443c..d62c587d 100644 --- a/website/templates/redirect.html +++ b/website/templates/redirect.html @@ -5,7 +5,6 @@ -

Redirecting…

Click here if you are not redirected. diff --git a/website/tests/test_build.py b/website/tests/test_build.py index b60ef26d..16af7aa4 100644 --- a/website/tests/test_build.py +++ b/website/tests/test_build.py @@ -1083,7 +1083,7 @@ class TestBuild: stub = (site / "categories" / "old-widgets" / "index.html").read_text(encoding="utf-8") assert '' in stub assert '' in stub - assert '' in stub + assert "noindex" not in stub assert "old-widgets" not in (site / "sitemap.xml").read_text(encoding="utf-8") def test_build_renders_category_intro_and_uses_lead_as_meta_description(self, tmp_path):