mirror of
https://github.com/getgrav/grav.git
synced 2026-06-23 10:00:41 +02:00
fix for theme name same as base_url and asset pipeline
This commit is contained in:
@@ -825,7 +825,7 @@ class Assets
|
||||
} else {
|
||||
// Fix to remove relative dir if grav is in one
|
||||
if (($this->base_url != '/') && (strpos($this->base_url, $link) == 0)) {
|
||||
$relative_path = str_replace($this->base_url, '/', $link);
|
||||
$relative_path = ltrim(preg_replace($this->base_url, '/', $link, 1), '/');
|
||||
}
|
||||
|
||||
$relative_dir = dirname($relative_path);
|
||||
|
||||
Reference in New Issue
Block a user