From fabb80098ac8ae5e339b08569e39f02a1559d33d Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Tue, 20 Jan 2026 16:19:35 +0100 Subject: [PATCH] fix(redirects): add /current path support for latest version The /current and /current/* paths were not accessible, causing 404 errors for external references. This implements native Docusaurus redirects using the createRedirects function to automatically map all /current/* paths to the corresponding paths in the latest version. Closes #24 Signed-off-by: Marco Nenciarini --- website/docusaurus.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index d7ad152..9c6d769 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -197,6 +197,13 @@ const config: Config = { from: '/', }, ], + createRedirects(existingPath) { + // Redirect /current/* to the latest version + if (existingPath.startsWith(`/${lastVersion}/`)) { + return existingPath.replace(`/${lastVersion}/`, '/current/'); + } + return undefined; + }, }, ], ],