mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-07 15:57:35 +01:00
Fixes #5745: Gii and debug modules may cause 404 exception when the route contains dashes
This commit is contained in:
@@ -124,7 +124,7 @@ class Module extends \yii\base\Module implements BootstrapInterface
|
||||
|
||||
$app->getUrlManager()->addRules([
|
||||
$this->id => $this->id,
|
||||
$this->id . '/<controller:\w+>/<action:\w+>' => $this->id . '/<controller>/<action>',
|
||||
$this->id . '/<controller:[\w\-]+>/<action:[\w\-]+>' => $this->id . '/<controller>/<action>',
|
||||
], false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user