mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
Add JSON:API support for Drupal
This commit is contained in:
@@ -57,7 +57,7 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
|||||||
{
|
{
|
||||||
$sitePath = $this->addSubdirectory($sitePath);
|
$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;
|
$_GET['q'] = $uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user