Skip to content

Commit c4fbc5c

Browse files
committed
Fix URL passed to static.php in PHP in-dev server
1 parent c7207f6 commit c4fbc5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

phpserver/router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
} else {
104104
$debug('file does not exist');
105105
if (strpos($route, 'static/') === 0) {
106+
$route = preg_replace('#static/#', '', $route, 1);
106107
$_GET['resource'] = $route;
107108
$debug("static: $route");
108109
include($magentoPackagePubDir.'/static.php');

0 commit comments

Comments
 (0)