1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

Add JSON:API support for Drupal

This commit is contained in:
Sam Granger
2019-01-17 11:33:53 +01:00
committed by GitHub
parent 83b1b2c467
commit c2668be5de

View File

@@ -57,7 +57,7 @@ public function frontControllerPath($sitePath, $siteName, $uri)
{
$sitePath = $this->addSubdirectory($sitePath);
if (!isset($_GET['q']) && !empty($uri) && $uri !== '/') {
if (!isset($_GET['q']) && !empty($uri) && $uri !== '/' && strpos($uri, '/jsonapi/') === false) {
$_GET['q'] = $uri;
}