Skip to content

[UG] Interlanguage links have invalid paths, probably due to caching #2317

@chalin

Description

@chalin

Strangely, this seemed to appear when I updated a minor version release of Node v22. Here's an example of the invalid links from the site-diff:

$ (cd public && git diff -bw --ignore-blank-lines -- ':(exclude)*.xml' ':(exclude)*.js' ':(exclude)*.map') | head -30
diff --git a/blog/2022/hello/index.html b/blog/2022/hello/index.html
index b348f94..1119c8c 100644
--- a/blog/2022/hello/index.html
+++ b/blog/2022/hello/index.html
@@ -174,7 +174,7 @@
     <span class="td-lang-menu__title-code">EN</span>
   </a>
   <ul class="dropdown-menu">
-    <li><span class="dropdown-item active">English</span></li><li><a class="dropdown-item" href="/xx/blog/2022/hello/">Placeholder</a></li>
+    <li><span class="dropdown-item active">English</span></li><li><a class="dropdown-item" href="/xx/blog/2024/0.9.0/">Placeholder</a></li>
     </ul>
 </div>
     </div>
diff --git a/blog/2023/bootstrap-5-migration/index.html b/blog/2023/bootstrap-5-migration/index.html
index 2ed34f9..d28ec04 100644
--- a/blog/2023/bootstrap-5-migration/index.html
+++ b/blog/2023/bootstrap-5-migration/index.html
@@ -174,7 +174,7 @@
     <span class="td-lang-menu__title-code">EN</span>
   </a>
   <ul class="dropdown-menu">
-    <li><span class="dropdown-item active">English</span></li><li><a class="dropdown-item" href="/xx/blog/2022/hello/">Placeholder</a></li>
+    <li><span class="dropdown-item active">English</span></li><li><a class="dropdown-item" href="/xx/blog/2024/0.9.0/">Placeholder</a></li>
     </ul>
 </div>
     </div>
diff --git a/blog/2023/docsy-0.7/index.html b/blog/2023/docsy-0.7/index.html
index e38e448..2532f1e 100644
--- a/blog/2023/docsy-0.7/index.html
+++ b/blog/2023/docsy-0.7/index.html
...

Feels like it's due to caching (again).
TODO: cross ref the other issue related to this.
Was the side-nav language drop down always cached?

I might be easier to leave this as is and go the route being proposed for OTel: to keep the language dropdown in the top nav.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguser guideImprovements to user guide

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions