Enable URL normalizer and set suffix="/"
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'suffix' => '/',
'normalizer' => [
'class' => 'yii\web\UrlNormalizer',
// use temporary redirection instead of permanent for debugging
'action' => YII_DEBUG?\yii\web\UrlNormalizer::ACTION_REDIRECT_TEMPORARY:\yii\web\UrlNormalizer::ACTION_REDIRECT_PERMANENT,
],
..
Load Yii2 debug bar
Infinite redirect.
Fixed it by adding: "'normalizer' => false" in yii2-debug/src/Module from line: 202 on both rules.
| Q | A
| ---------------- | ---
| Yii version | 2.0.15.1
| PHP version | 7.2.9
| Operating system |
Issue moved to https://github.com/yiisoft/yii2-debug/issues/333
This should be fixed in normalizer too.
Yii 2.0.17-dev works fine with exactly the same urlManager config.
Thanks for checking.