diff --git a/internal/html/repo_file.templ b/internal/html/repo_file.templ index fc337a46605372f67c044935d7757cec354393b5..208c25286aaf9b56faf87e659a735b8e0b4b8e22 100644 --- a/internal/html/repo_file.templ +++ b/internal/html/repo_file.templ @@ -51,8 +51,8 @@ } if (start !== 0) { deactivateLines(); activateLines(start, end); - let anchor = `#L${start}`; - if (end !== 0) anchor += `-L${end}`; + let anchor = `#${start}`; + if (end !== 0) anchor += `-${end}`; if (anchor !== "") $permalink.href = $permalink.dataset.permalink + anchor; $lineLines[start-1].scrollIntoView(true); } diff --git a/internal/html/repo_file_templ.go b/internal/html/repo_file_templ.go index ce6de311b4a8b6244e46937cfcc29cb64ed6afce..ea3d3d418ebc15c1d25d9d9c83dc1adc07f53f8d 100644 --- a/internal/html/repo_file_templ.go +++ b/internal/html/repo_file_templ.go @@ -134,7 +134,7 @@ templ_7745c5c3_Err = base(rfc.BaseContext).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }