]> Sergey Matveev's repositories - public-inbox.git/commit
www_coderepo: tree: do not break #n$LINENO
authorEric Wong <e@80x24.org>
Fri, 13 Jan 2023 04:01:32 +0000 (04:01 +0000)
committerEric Wong <e@80x24.org>
Fri, 13 Jan 2023 19:14:19 +0000 (19:14 +0000)
commit16f317f32bd5306d852b7d079b20cd0e4f2b4ff9
treeaa6ca9a35cd488eca5ba75d3fb59f4a51b1208d6
parentd95ddf03cd437d6f5038f2ff21a9ef7efe93b056
www_coderepo: tree: do not break #n$LINENO

We can't use 302 redirects at the /tree/ endpoint as originally
intended since "#n$LINENO" fragment links aren't preserved
across redirects (since clients don't typically send that part
of the URL in requests).

So we'll have to make sure we handle prefixes properly and show
trees directly.  Oh well :<  At least the history-aware 404
handling remains :>
lib/PublicInbox/RepoTree.pm
lib/PublicInbox/ViewVCS.pm
lib/PublicInbox/WwwCoderepo.pm
t/solver_git.t