about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-05 08:56:54 +0000
committerEric Wong <e@80x24.org>2015-09-05 08:58:51 +0000
commitdaeb042141ce15a6f8b46da9d600ab4b417c93a1 (patch)
tree777ffb70f9b3af271972529533119f37da6aa030 /lib/PublicInbox/WWW.pm
parent79601e109dc8162b4c62f7c63cfc6518b0f00112 (diff)
downloadpublic-inbox-daeb042141ce15a6f8b46da9d600ab4b417c93a1.tar.gz
In case a URL gets truncated (as is common with long URLs),
we can rely on Xapian for partial matches and bring the user
to their destination.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 2718854c..8f155063 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -79,6 +79,7 @@ sub r404 {
         my ($ctx) = @_;
         if ($ctx && $ctx->{mid}) {
                 require PublicInbox::ExtMsg;
+                searcher($ctx);
                 return PublicInbox::ExtMsg::ext_msg($ctx);
         }
         r(404, 'Not Found');