Url encoded slash in route parameter

I’ve admin.app.it that is pointing to a just generated advanced application backend.

When I open admin.app.it and I click on LOGIN i see the url as




http://admin.app.it/index.php?r=site/login



But when clicked the url into browser (FF) is showed with url encoded slash




http://admin.app.it/index.php?r=site%2Flogin



This is ugly.

How to fix it ?

Add this in your main.php file




    // some code...

    'components' => [

        'urlManager' => [

            'class' => 'yii\web\UrlManager',

            'enablePrettyUrl' => true,

            'showScriptName' => false,

            'rules' => [

            ],

        ],

    ],

    // some code...



I don’t want pretty url

I want ‘standard’ url, like in Yii 1.1.14 I’m using for another app

Also: i cannot add .htaccess to accomplish this task into production environment.