]> Sergey Matveev's repositories - public-inbox.git/commit
www: fix for running under mount paths
authorEric Wong <e@80x24.org>
Sun, 15 May 2016 06:31:50 +0000 (06:31 +0000)
committerEric Wong <e@80x24.org>
Mon, 16 May 2016 07:52:56 +0000 (07:52 +0000)
commit19e00ca1a6aab8e59f74241fcdfbb768785ff2ff
treea88da5cdd782b52672bb421afe2a96bfc1bfa194
parentf22bbb56cf44c6864d53cf27746f9cafc12e05c1
www: fix for running under mount paths

We try to avoid issues like these by using relative URLs
in hrefs, but we can't avoid the problem with Location:
for redirects and Atom feeds which are likely to be
rehosted elsewhere.

We also reorder some of the code to work around a weird
issue on the psgi-plack mailing list:
<20160516073750.GA11931@dcvr.yhbt.net>
(Somewhere on https://groups.google.com/group/psgi-plack
 but it's probably not bookmarkable)
lib/PublicInbox/Feed.pm
lib/PublicInbox/Inbox.pm
lib/PublicInbox/WWW.pm
t/inbox.t [new file with mode: 0644]
t/psgi_mount.t [new file with mode: 0644]