From a8ff5222e9fdb2ff1f286f3dcc3e519dbdbc1946 Mon Sep 17 00:00:00 2001 From: Jake Deery Date: Mon, 1 Dec 2025 14:24:33 +0000 Subject: [PATCH] Bug 14962: On Display config changes for Vue This patch contains config changes to enable the new On Display Vue app to work. Please see the test files commit for instructions on how to test this bundle of patches. Sponsored-by: ByWater Solutions Signed-of-by: Martin Renvoize --- debian/templates/apache-shared-intranet.conf | 2 ++ etc/koha-httpd.conf | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/debian/templates/apache-shared-intranet.conf b/debian/templates/apache-shared-intranet.conf index 54155faef88..ef31ca666e0 100644 --- a/debian/templates/apache-shared-intranet.conf +++ b/debian/templates/apache-shared-intranet.conf @@ -24,6 +24,8 @@ RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L] RewriteRule ^/cgi-bin/koha/erm/.*$ /cgi-bin/koha/erm/erm.pl [PT] RewriteRule ^/cgi-bin/koha/sip2/.*$ /cgi-bin/koha/sip2/sip2.pl [PT] +RewriteCond %{REQUEST_URI} !^/cgi-bin/koha/display/.*.pl$ +RewriteRule ^/cgi-bin/koha/display/.*$ /cgi-bin/koha/display/display-home.pl [PT] RewriteCond %{REQUEST_URI} !^/cgi-bin/koha/preservation/.*.pl$ RewriteRule ^/cgi-bin/koha/preservation/.*$ /cgi-bin/koha/preservation/home.pl [PT] RewriteRule ^/cgi-bin/koha/admin/record_sources(.*)?$ /cgi-bin/koha/admin/record_sources.pl$1 [PT] diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index 367d3bce8f6..675d4ac2cf9 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -107,6 +107,10 @@ RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L] + RewriteRule ^/cgi-bin/koha/erm/.*$ /cgi-bin/koha/erm/erm.pl [PT] + RewriteRule ^/cgi-bin/koha/display/.*$ /cgi-bin/koha/display/display-home.pl [PT] + RewriteRule ^/cgi-bin/koha/preservation/.*$ /cgi-bin/koha/preservation/home.pl [PT] + # REST API configuration Alias "/api" "__API_CGI_DIR__" @@ -238,6 +242,8 @@ RewriteRule ^/cgi-bin/koha/sip2/.*$ /cgi-bin/koha/sip2/sip2.pl [PT] RewriteCond %{REQUEST_URI} !^/cgi-bin/koha/preservation/.*.pl$ RewriteRule ^/cgi-bin/koha/preservation/.*$ /cgi-bin/koha/preservation/home.pl [PT] + RewriteCond %{REQUEST_URI} !^/cgi-bin/koha/display/.*.pl$ + RewriteRule ^/cgi-bin/koha/display/.*$ /cgi-bin/koha/display/display-home.pl [PT] RewriteRule ^/cgi-bin/koha/admin/record_sources(.*)?$ /cgi-bin/koha/admin/record_sources.pl$1 [PT] RewriteCond %{QUERY_STRING} booksellerid=(.*) RewriteRule ^/cgi-bin/koha/acqui/supplier.pl$ /cgi-bin/koha/acquisition/vendors/%1? [R] -- 2.50.1 (Apple Git-155)