I have a redirection in my yii2 controller footer which goes in at this way.
return $this->redirect(['inventory']);
It is redirecting me to.
http://localhost/['folder']/frontend/web/inventory/inventory
But I want redirection to this.
http://localhost/['folder']/frontend/web/inventory
How can I do that?