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
# If you find yourself constantly reverting features and clearing caches, for example as part of QA work, then you may find this little alias useful. | |
# | |
# Bonus: you now get to use "fracc" as a verb (or an adjective) when talking with your peers. | |
alias fracc="drush fra -y && drush cc all" |
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
RewriteEngine On # Turn on the rewriting engine | |
RewriteCond %{HTTP_HOST} ^(www\.)?example\.org$ [NC] | |
RewriteRule ^(.*)$ http://example.org/docroot/$1 | |
RewriteRule ^(.*)$ docroot/$1 [L] |
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
/** | |
* {@inheritdoc} | |
*/ | |
protected function isLocal($url) { | |
print $url; | |
var_dump(UrlHelper::externalIsLocal($url, $this->getRequestContext()->getCompleteBaseUrl())); | |
var_dump($this->getRequestContext()->getCompleteBaseUrl()); | |
return !UrlHelper::isExternal($url) || UrlHelper::externalIsLocal($url, $this->getRequestContext()->getCompleteBaseUrl()); | |
} |