1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Merge pull request #705 from samgranger/patch-1

Add JSON:API support for Drupal
This commit is contained in:
Matt Stauffer
2019-05-10 08:54:15 -04:00
committed by GitHub

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;
}