mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes #361 - Assets paths fail on subfolders
This commit is contained in:
parent
a8371264dc
commit
1728f148a3
@ -260,8 +260,10 @@ class CombineAssets
|
|||||||
*/
|
*/
|
||||||
protected function getTargetPath($path = null)
|
protected function getTargetPath($path = null)
|
||||||
{
|
{
|
||||||
if ($path === null)
|
if ($path === null) {
|
||||||
$path = Request::getBaseUrl().'/combine';
|
$baseUri = substr(Request::getBaseUrl(), strlen(Request::getBasePath()));
|
||||||
|
$path = $baseUri.'/combine';
|
||||||
|
}
|
||||||
|
|
||||||
if (strpos($path, '/') === 0)
|
if (strpos($path, '/') === 0)
|
||||||
$path = substr($path, 1);
|
$path = substr($path, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user