Fixes #361 - Assets paths fail on subfolders

This commit is contained in:
Sam Georges 2014-06-29 09:34:49 +10:00
parent a8371264dc
commit 1728f148a3

View File

@ -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);