Created
November 16, 2015 16:34
-
-
Save ADmad/70d5b5917f77ec6e60b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// Don't automatically add "prefix" to urls | |
Router::addUrlFilter(function ($params, $request) { | |
if (!isset($params['_name']) && !array_key_exists('prefix', $params)) { | |
$params['prefix'] = false; | |
} | |
return $params; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment