From 656345685dae0de213d95f88f34d7b73da759df7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 7 Sep 2021 22:02:03 +0000 Subject: news_www: favor ->ALL URL when using ->ALL This allows us to link to threads spread across multiple inboxes. Reported-by: Konstantin Ryabitsev Link: https://public-inbox.org/meta/20210907140954.4rlh6pn5fz4ljkxp@meerkat.local/ --- lib/PublicInbox/NewsWWW.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/NewsWWW.pm') 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); } -- cgit v1.2.3-24-ge0c7