Skip to content

Commit aa22d89

Browse files
author
Fred Sung
committed
MAGETWO-31688: Broken Links to Static Assets in Error Application
- Normalize the path separator to slash when determine the base url.
1 parent 6e257ec commit aa22d89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pub/errors/processor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ public function processReport()
226226
public function getViewFileUrl()
227227
{
228228
//The url needs to be updated base on Document root path.
229-
return $this->getBaseUrl() . str_replace($this->_indexDir, '', $this->_errorDir) . $this->_config->skin . '/';
229+
return $this->getBaseUrl() . str_replace(str_replace('\\', '/', $this->_indexDir),
230+
'',
231+
str_replace('\\', '/', $this->_errorDir)) . $this->_config->skin . '/';
230232
}
231233

232234
/**

0 commit comments

Comments
 (0)