From ac6cf5b03ba043aa9ca3b8283f78e426f862e0b0 Mon Sep 17 00:00:00 2001 From: Yochem van Rosmalen Date: Fri, 6 Mar 2026 19:20:40 +0100 Subject: [PATCH] fix(gen): alias /doc/user/helptag.html to /doc/user/helptag/ #38156 Problem: helptag.html is used to search for the online help documentation of a specified tag. The previous URL was `/doc/user/helptag.html` but that switched to `/doc/user/helptag/` in https://github.com/neovim/neovim.github.io/pull/437. The alias of the .html page was added to all other doc pages but forgotten for the helptag.html page Solution: Add the alias to the helptag.html page too --- src/gen/gen_help_html.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gen/gen_help_html.lua b/src/gen/gen_help_html.lua index e858a94cb2..fec1b9340c 100644 --- a/src/gen/gen_help_html.lua +++ b/src/gen/gen_help_html.lua @@ -956,7 +956,8 @@ end local function gen_helptag_html(fname) local frontmatter = vim.json.encode({ title = 'Helptag redirect', - layout = 'helptag', -- Hugo-specific + layout = 'helptag', + aliases = { vim.fs.basename(fname) }, }, { indent = ' ', sort_keys = true }) tofile(fname, frontmatter) end