Skip to content

Commit a12e3cf

Browse files
committed
Merge branch 'pb/maint-gitweb-blob-lineno'
* pb/maint-gitweb-blob-lineno: gitweb: Fix blob linenr links in pathinfo mode
2 parents 38d3d92 + b9759f0 commit a12e3cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5127,7 +5127,8 @@ sub git_blob {
51275127
chomp $line;
51285128
$nr++;
51295129
$line = untabify($line);
5130-
printf "<div class=\"pre\"><a id=\"l%i\" href=\"#l%i\" class=\"linenr\">%4i</a> %s</div>\n",
5130+
printf "<div class=\"pre\"><a id=\"l%i\" href=\"" . href(-replay => 1)
5131+
. "#l%i\" class=\"linenr\">%4i</a> %s</div>\n",
51315132
$nr, $nr, $nr, esc_html($line, -nbsp=>1);
51325133
}
51335134
}

0 commit comments

Comments
 (0)