diff --git a/management/univention-management-console-frontend/conffiles/etc/apache2/sites-available/univention-management-console b/management/univention-management-console-frontend/conffiles/etc/apache2/sites-available/univention-management-console index 89cd80e..5e47fd4 100644 --- a/management/univention-management-console-frontend/conffiles/etc/apache2/sites-available/univention-management-console +++ b/management/univention-management-console-frontend/conffiles/etc/apache2/sites-available/univention-management-console @@ -45,6 +45,12 @@ RewriteCond %{DOCUMENT_ROOT}/%1 !-d RewriteCond %{REQUEST_METHOD} ^GET RewriteRule ^(/univention-management-console/js)_[^/]*/(.*) $1/$2 [R=301] +# avoid 404 Not Found errors for not existing translation files +RewriteCond %{REQUEST_URI} ^/univention-management-console/js[^/]*/umc/modules/i18n/(en|de)/.*\.json +RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f +RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d +RewriteRule .* /univention-management-console/js/umc/modules/i18n/empty.json [P,L,T=application/json] + RequestHeader set X-UMC-HTTPS %{HTTPS}s ErrorDocument 503 "{\"status\": 503, \"message\": \"The Univention Management Console Web Server could not be reached. Please restart it or try again later.\"}" diff --git a/management/univention-management-console-frontend/debian/univention-management-console-frontend.install b/management/univention-management-console-frontend/debian/univention-management-console-frontend.install index 955793c..c973baa 100644 --- a/management/univention-management-console-frontend/debian/univention-management-console-frontend.install +++ b/management/univention-management-console-frontend/debian/univention-management-console-frontend.install @@ -1,2 +1,3 @@ usr/share/univention-management-console-frontend/* usr/share/univention-management-console-frontend/ icons/univention-management-console.svg usr/share/univention-management-console-frontend/js/dijit/themes/umc/icons/scalable/ +empty.json usr/share/univention-management-console-frontend/js/umc/modules/i18n/empty.json diff --git a/management/univention-management-console-frontend/empty.json b/management/univention-management-console-frontend/empty.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/management/univention-management-console-frontend/empty.json @@ -0,0 +1 @@ +{}