Skip to content

Commit 6a3413e

Browse files
authored
Handle Static resource
1 parent d0dc1d4 commit 6a3413e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ObjectManager/BootstrapPool.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public function __construct()
3535
*/
3636
public function get(): AppBootstrap
3737
{
38-
$areaCode = $this->areaList->getCodeByFrontName(strtok(trim($_SERVER['REQUEST_URI'], '/'), '/'));
38+
$pathInfo = $_GET['resource'] ?? $_SERVER['REQUEST_URI'];
39+
$areaCode = $this->areaList->getCodeByFrontName(strtok(trim($pathInfo, '/'), '/'));
3940

4041
return $this->bootstraps[$areaCode] ??= $this->createBootstrap($areaCode);
4142
}

0 commit comments

Comments
 (0)