-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
In the routing page under profiler, the route matching logs does not take host in the routing files into account, and giving inconsistent results with the actual routed page. This could be a hurdle in debugging.
i.e. with the following configuration, going into example.com will show mobile_homepage being matched, despite a 404 error is thrown.
/* app/config/routing.yml */
mobile:
resource: "@AcmeMobileBundle/Resources/config/routing.yml"
host: m.example.com
prefix: /
desktop:
resource: "@AcmeDesktopBundle/Resources/config/routing.yml"
prefix: //* src/Acme/MobileBundle/Resources/config/routing.yml */
mobile_homepage:
pattern: /
defaults: { _controller: AcmeMobileBundle:some:controller }/* src/Acme/DesktopBundle/Resources/config/routing.yml */
desktop_homepage:
pattern: /page/
defaults: { _controller: AcmeDesktopBundle:some:controller }Always reproducible.
I am on Sf 2.2.0-DEV (6755546) with PHP 5.4.4 on Mac OS X 10.7.3