Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Разное поведение обработки неправильного uri #4

Open
djaf77 opened this issue Nov 13, 2015 · 1 comment

Comments

@djaf77
Copy link
Contributor

djaf77 commented Nov 13, 2015

Если в неправильно введенном адресе путь состоит из одного звена, например
domain.ru/dummy, то метод guessInternalPath определяет его как action "dummy" дефолтного контроллера без модуля и далее генерируется HttpException 404
Если звеньев больше, например domain.ru/foo/bar - то вызывается исключение "Route to path .... not found", хотя хотелось бы получать все тот же 404.

@djaf77
Copy link
Contributor Author

djaf77 commented Nov 13, 2015

Предлагаю в методе T4\Mvc\Application::run() в блок кода обработки E404Exception добавить и RouterException, с передачей причины 404 в action обрабатывающий 404 ошибку

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant