JMSI18nRoutingBundle icon indicating copy to clipboard operation
JMSI18nRoutingBundle copied to clipboard

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

Open ajohnstone opened this issue 11 years ago • 2 comments

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 ""."

ajohnstone avatar May 14 '13 11:05 ajohnstone

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.

schmittjoh avatar May 14 '13 12:05 schmittjoh

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 ""."

ajohnstone avatar May 14 '13 14:05 ajohnstone