From 35e1cc2fa9c31b80cad0bda71f88c85424bd10b0 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 22 Jan 2026 15:24:19 +0100 Subject: [PATCH 1/2] set base path propperly --- restapi/index.php | 2 +- www/index.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/restapi/index.php b/restapi/index.php index 5bc4535eb..6f68aaac4 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -3281,7 +3281,7 @@ $container->set('notifier', $notifier); $container->set('authenticator', $authenticator); $container->set('translator', $translator); -$app->setBasePath($settings->_httpRoot."restapi/index.php"); +$app->setBasePath(rtrim($settings->_httpRoot, '/')."/restapi/index.php"); $app->add(new RestapiAuthMiddleware($container, $app->getResponseFactory())); diff --git a/www/index.php b/www/index.php index dd061117d..06f609252 100644 --- a/www/index.php +++ b/www/index.php @@ -61,6 +61,8 @@ if (true) { $container->set('authenticator', $authenticator); $container->set('translator', $translator); + $app->setBasePath(rtrim($settings->_httpRoot, '/')); + if (isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) { foreach ($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) { if (method_exists($hookObj, 'addMiddleware')) { From 1243bfce62c276a07d1c07f282987d06c128c10b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 22 Jan 2026 15:25:21 +0100 Subject: [PATCH 2/2] add changes of 5.1.45 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 89f74c6f3..1a88a88f6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,6 +11,7 @@ - simple password strength algorithmn takes length of password into account, if length is greater than 8 - parse changelog and readme of extension as markdown +- fix incorrect base path for url routing, which broke some extensions -------------------------------------------------------------------------------- Changes in version 5.1.44