diff options
author | Eric Wong <e@80x24.org> | 2021-09-07 22:02:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-08 02:40:58 +0000 |
commit | 656345685dae0de213d95f88f34d7b73da759df7 (patch) | |
tree | cdb73159e7aee1096276228af4d3812a684dcbb3 /lib/PublicInbox/NewsWWW.pm | |
parent | 9ea2f48bc8586d779d3b96aaf68587de3b20c6a7 (diff) | |
download | public-inbox-656345685dae0de213d95f88f34d7b73da759df7.tar.gz |
news_www: favor ->ALL URL when using ->ALL
This allows us to link to threads spread across multiple inboxes. Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> Link: https://public-inbox.org/meta/20210907140954.4rlh6pn5fz4ljkxp@meerkat.local/
Diffstat (limited to 'lib/PublicInbox/NewsWWW.pm')
-rw-r--r-- | lib/PublicInbox/NewsWWW.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/NewsWWW.pm b/lib/PublicInbox/NewsWWW.pm index abafc4f9..d13731ae 100644 --- a/lib/PublicInbox/NewsWWW.pm +++ b/lib/PublicInbox/NewsWWW.pm @@ -82,7 +82,8 @@ sub call { for (@$xr3) { s/:[0-9]+:$x->{blob}\z// or next; my $ibx = $by_eidx_key->{$_} // next; - my $url = $ibx->base_url or next; + my $url = $ALL->base_url($env) // + $ibx->base_url // next; $url .= mid_escape($mid) . '/'; return redirect(302, $url); } |