Hello!
Who can tell how in the error handler to get a link due to which an exception occurred.
For example, there is a link:
site.ru/a/b/c - which is not working (NotFoundException will be thrown) There is an error handler actionError ():

public function actionError() { //Как вот здесь получить site.ru/a/b/c } 

Tried to use $ app-> request-> referrer, but this property returns the last successfully loaded page.

    1 answer 1

    Hurray found!

     Yii::$app->request->url 

    For some reason I decided that in the property Yii :: $ app-> request-> url there will be a link to the error handler.