Last active
April 3, 2020 10:35
-
-
Save ADmad/3759b0d77d67e477f7df1cc262601cd0 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 "plugin" to urls if currently on a plugin action | |
Router::addUrlFilter(function ($params, $request) { | |
if (!isset($params['plugin'])) { | |
$params['plugin'] = false; | |
} | |
return $params; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment