mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Remove webroot from file path
The webroot is already provided, otherwise this links to stuff like "/nextcloud/nextcloud/index.php" instead of "/nextcloud/index.php" Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
350b7ebc86
commit
7b8debc5d3
1 changed files with 1 additions and 1 deletions
|
|
@ -179,6 +179,6 @@ class SCSSCacher {
|
|||
$fileName = array_pop($tmpfileLoc);
|
||||
$fileName = str_replace('.scss', '.css', $fileName);
|
||||
|
||||
return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), 1);
|
||||
return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue