diff options
author | Eric Wong <e@80x24.org> | 2017-02-15 22:35:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-16 04:27:50 +0000 |
commit | f6244586ba4f5a5e7575e1254be8c9bbe303fce9 (patch) | |
tree | d1a8dd757b632f8cff66e3878f7cfc01e6e2f12d /lib/PublicInbox/RepoGit.pm | |
parent | 993dc7a772b10deda15733c8e750d98bf4d27bd0 (diff) | |
download | public-inbox-f6244586ba4f5a5e7575e1254be8c9bbe303fce9.tar.gz |
Query strings make endpoint caching more difficult since they're order-independent. They are also more likely lost or truncated inadvertantly when copy+pasting, so try to avoid them for default endpoints. There's still some things which are broken and followup commits will be needed to fix them.
Diffstat (limited to 'lib/PublicInbox/RepoGit.pm')
-rw-r--r-- | lib/PublicInbox/RepoGit.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/RepoGit.pm b/lib/PublicInbox/RepoGit.pm index b44457ca..114eb656 100644 --- a/lib/PublicInbox/RepoGit.pm +++ b/lib/PublicInbox/RepoGit.pm @@ -50,17 +50,17 @@ sub git_dec_links ($$) { $h = PublicInbox::Hval->utf8($h); my $r = $h->as_href; $h = $h->as_html; - push @l, qq($s -> <a\nhref="${rel}log?h=$r">$h</a>); + push @l, qq($s -> <a\nhref="${rel}log/$r">$h</a>); } elsif (s/\Atag: //) { my $h = PublicInbox::Hval->utf8($_); my $r = $h->as_href; $h = $h->as_html; - push @l, qq(<a\nhref="${rel}tag?h=$r"><b>$h</b></a>); + push @l, qq(<a\nhref="${rel}tag/$r"><b>$h</b></a>); } else { my $h = PublicInbox::Hval->utf8($_); my $r = $h->as_href; $h = $h->as_html; - push @l, qq(<a\nhref="${rel}log?h=$r">$h</a>); + push @l, qq(<a\nhref="${rel}log/$r">$h</a>); } } @l; |