From 5025f7a890ae9dc56fd90cf9e6174beb69a9327d 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. --- debian/templates/apache-shared-intranet.conf | 2 ++ etc/koha-httpd.conf | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/templates/apache-shared-intranet.conf b/debian/templates/apache-shared-intranet.conf index 1919288b120..59c4658d3f9 100644 --- a/debian/templates/apache-shared-intranet.conf +++ b/debian/templates/apache-shared-intranet.conf @@ -22,6 +22,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 d8254d6bf0b..afcc917de86 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__" -- 2.50.1 (Apple Git-155)