Bugzilla – Attachment 26201 Details for
Bug 7844
plack scripts for developers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7844 - plack should redirect / to correct page
Bug-7844---plack-should-redirect--to-correct-page.patch (text/plain), 1.04 KB, created by
Dobrica Pavlinusic
on 2014-03-12 16:23:27 UTC
(
hide
)
Description:
Bug 7844 - plack should redirect / to correct page
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2014-03-12 16:23:27 UTC
Size:
1.04 KB
patch
obsolete
>From 17e85299412b39cfd84b277414afdec33a7c4b05 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Wed, 12 Mar 2014 17:21:37 +0100 >Subject: [PATCH] Bug 7844 - plack should redirect / to correct page > >This is followup which include redirect for home pages of OPAC >and Intranet >--- > misc/plack/koha.psgi | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi >index 904cc72..fd8b8a8 100644 >--- a/misc/plack/koha.psgi >+++ b/misc/plack/koha.psgi >@@ -53,6 +53,9 @@ sub watch_for_size { > my $CGI_ROOT = $ENV{INTRANET} ? $ENV{INTRANETDIR} : $ENV{OPACDIR}; > warn "# using Koha ", $ENV{INTRANET} ? 'intranet' : 'OPAC', " CGI from $CGI_ROOT\n"; > my $app=Plack::App::CGIBin->new(root => $CGI_ROOT); >+my $home = sub { >+ return [ 302, [ Location => '/cgi-bin/koha/' . ( $ENV{INTRANET} ? 'mainpage.pl' : 'opac-main.pl' ) ] ]; >+}; > > builder { > >@@ -78,6 +81,7 @@ builder { > root => "$ENV{INTRANETDIR}/koha-tmpl/"; > > mount "/cgi-bin/koha" => $app; >+ mount "/" => $home; > > }; > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7844
:
8684
|
8693
|
8731
|
8892
|
8893
|
8894
|
9113
|
9879
|
10082
|
10220
|
26148
|
26201
|
26206
|
26227
|
26275