Merge pull request #44413 from nextcloud/backport/44408/stable28

[stable28] fix(JSRecourceLocator): Add missing slash after server root
This commit is contained in:
Ferdinand Thiessen 2024-03-29 14:09:13 +01:00 committed by GitHub
commit 6044442ecf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ class JSResourceLocator extends ResourceLocator {
$app = substr($script, 0, strpos($script, '/'));
$scriptName = basename($script);
// Get the app root path
$appRoot = $this->serverroot . 'apps/';
$appRoot = $this->serverroot . '/apps/';
$appWebRoot = null;
try {
// We need the dir name as getAppPath appends the appid