Display in the frontend an image saved backend without using hardcodes URLs

this is the link that i used in the view
<img src="<?= $this->redirect(Yii::$app->params['baseUrl']; ?>/uploads/logo.jpg>`

this is my code inin params.php
<?php

return [
‘adminEmail’ => ‘admin@example.com’,
‘baseUrl’ => ‘http://backend.test’,
];

i want to get the url without using harcodes URLs