You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Если в неправильно введенном адресе путь состоит из одного звена, например
domain.ru/dummy, то метод guessInternalPath определяет его как action "dummy" дефолтного контроллера без модуля и далее генерируется HttpException 404
Если звеньев больше, например domain.ru/foo/bar - то вызывается исключение "Route to path .... not found", хотя хотелось бы получать все тот же 404.
The text was updated successfully, but these errors were encountered:
Предлагаю в методе T4\Mvc\Application::run() в блок кода обработки E404Exception добавить и RouterException, с передачей причины 404 в action обрабатывающий 404 ошибку
Если в неправильно введенном адресе путь состоит из одного звена, например
domain.ru/dummy, то метод guessInternalPath определяет его как action "dummy" дефолтного контроллера без модуля и далее генерируется HttpException 404
Если звеньев больше, например domain.ru/foo/bar - то вызывается исключение "Route to path .... not found", хотя хотелось бы получать все тот же 404.
The text was updated successfully, but these errors were encountered: