registerJsFile() bug with routes?

Hello,

I do not know if this is the expected behavior, but registerJsFile() turns relative paths to absolute if the parameter "depends" is used.


$this->registerJsFile('js/my.js',  ['depends' => [yii\web\JqueryAsset::className()]]);

"js/my.js" becomes "/js/my.js".