From 365d97757f464a4e1deb6c149563f344b0ebf4a7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Apr 2014 06:51:41 +0000 Subject: cgi: support /all.html page with inline threads Maybe this increases readability for now. --- lib/PublicInbox/Feed.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 92bbf92d..1c205631 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -121,8 +121,9 @@ sub get_feedopts { my $cgi_url = $cgi->url(-path=>1, -query=>1, -relative=>1); my $base = $cgi->url(-base); $url_base = $cgi_url; - if ($url_base =~ s!/(?:|index\.html)?\z!!) { - $rv{atomurl} = "$base$url_base/index.atom.xml"; + if ($url_base =~ s!/(?:|(index|all)\.html)?\z!!) { + my $ia = $1 || 'index'; + $rv{atomurl} = "$base$url_base/$ia.atom.xml"; } else { $url_base =~ s!/?(?:index|all)\.atom\.xml\z!!; $rv{atomurl} = $base . $cgi_url; -- cgit v1.2.3-24-ge0c7