diff --git a/src/App.php b/src/App.php index c0afd514d..3408241a1 100644 --- a/src/App.php +++ b/src/App.php @@ -182,7 +182,11 @@ class App */ public function registerStylesheet($path) { - $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path); + if (!empty($this->getBasePath())) { + $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path); + } else { + $url = $path; + } $this->stylesheets[] = trim($url, '/'); }