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

Fix error routes to contain a constraint for the /error path #411

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

cintamani
Copy link
Contributor

Part of: https://eaflood.atlassian.net/browse/RUBY-261

The dummy app inside the WEX engine correctly handles 404 and 500 errors but the applications
that inherit from the engine always render a general template for every error.
This is because the wrong path is sent together as an ":id" and hence the information about the error template to use is lost in time and space.
Changing the URL constraint fixed this issue.
Hence the URL constraint is also going to change here for consistency and to prevent regression.

Part of: https://eaflood.atlassian.net/browse/RUBY-261

The dummy app inside the WEX engine correctly handles 404 and 500 errors but the applications
that inherit from the engine always render a general template for every error.
This is because the wrong path is sent together as an ":id" and hence the information about the error template to use is lost in time and space.
Changing the URL constraint fixed this issue.
Hence the URL constraint is also going to change here for consistency and to prevent regression.
@cintamani cintamani added the bug Something isn't working label Apr 29, 2019
@cintamani cintamani self-assigned this Apr 29, 2019
@cintamani cintamani merged commit c5b0b5f into master Apr 29, 2019
@cintamani cintamani deleted the 261-handle-404-errors branch April 29, 2019 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants