From d135f229cd67fa68a1d55ee0206b501e329d2f1e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 16 Jan 2020 14:33:39 +0000 Subject: [PATCH] Bug 22220: Fix bib Apache rewrite rule for intranet Trivial change. Speaks for itself. Since koha/detail.pl does not exist, we cannot break things ;) Test plan: [1] Copy the change in apache-shared-intranet.conf to your actual apache configuration. Probably in /etc/koha/. [2] Restart Apache. [3] Try a biblionumber say 123 on intranet with [your_staff_client]/bib/123. Does the detail page come up? Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- debian/templates/apache-shared-intranet.conf | 2 +- etc/koha-httpd.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/templates/apache-shared-intranet.conf b/debian/templates/apache-shared-intranet.conf index 1d347059a0..58de0b381b 100644 --- a/debian/templates/apache-shared-intranet.conf +++ b/debian/templates/apache-shared-intranet.conf @@ -14,7 +14,7 @@ ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/catalogue/search.pl" RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) RewriteRule (.+) $1?%1%2 [N,R,NE] -RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] +RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/catalogue/detail.pl?biblionumber=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L] diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index d0f619efdb..a139a8782f 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -233,7 +233,7 @@ #The following two directives are unnecessary to proper Koha functioning. #RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) #RewriteRule (.+) $1?%1%2 [N,R,NE] - RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] + RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/catalogue/detail.pl?biblionumber=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L] -- 2.39.5