Skip to content

If the domain does not match the hostmap, it should not bail out and thr... #97

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ajohnstone
Copy link

If the domain does not match the hostmap, it should not bail out and throw an exception.

It should fall back to the default locale.

Throws "[1/2] ResourceNotFoundException: Resource corresponding to pattern "/" not found for locale ""."

@schmittjoh
Copy link
Owner

I'm not convinced by this.

If a route is restricted to another host and consequentially does not exist on the current host, then a 404 seems like the logical response in such a case.

@ajohnstone
Copy link
Author

Any thoughts on changing this to be a configuration option? As redirect_to_host is not always a valid option.

Just to note the error throws

Throws "[1/2] ResourceNotFoundException: Resource corresponding to pattern "/" not found for locale ""."

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

Successfully merging this pull request may close these issues.

3 participants