Skip to content

Commit 93111b3

Browse files
author
Fred Sung
committed
MAGETWO-31688: Broken Links to Static Assets in Error Application
- Remove the hardcode of error folder when determined ViewFileUrl (It will be the base url for the error application).
1 parent 2015f5c commit 93111b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pub/errors/processor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ public function processReport()
225225
*/
226226
public function getViewFileUrl()
227227
{
228-
return $this->getBaseUrl() . self::ERROR_DIR . '/' . $this->_config->skin . '/';
228+
//The url needs to be updated base on Document root path.
229+
return $this->getBaseUrl() . str_replace($this->_indexDir, '', $this->_errorDir) . $this->_config->skin . '/';
229230
}
230231

231232
/**

0 commit comments

Comments
 (0)