Last active
November 27, 2018 04:10
-
-
Save stillfinder/9a4980f54e469e6a81b5ecc69aa4c0ca to your computer and use it in GitHub Desktop.
Drupal Valet ?q parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function frontControllerPath($sitePath, $siteName, $uri) | |
{ | |
$sitePath = $this->addSubdirectory($sitePath); | |
if (!isset($_GET['q']) && !empty($uri) && $uri !== '/') { | |
$_GET['q'] = $uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment