Merge pull request #61100 from nextcloud/fix/fix-dist-css-support

fix: Correctly detect appid for dist css files
This commit is contained in:
Louis 2026-06-09 17:12:18 +02:00 committed by GitHub
commit 9028d13c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -384,7 +384,10 @@ class TemplateLayout {
public function getAppNamefromPath(string $path): string|false {
if ($path !== '') {
$pathParts = explode('/', $path);
if ($pathParts[0] === 'css') {
if ($pathParts[0] === 'dist') {
// Return the part before the dash in the file name
return explode('-', \end($pathParts), 2)[0];
} elseif ($pathParts[0] === 'css') {
// This is a scss request
return $pathParts[1];
} elseif ($pathParts[0] === 'core') {