title: Symfony2 MobileDetectBundle redirect is not working
body: <p>I'm making a mobile version of my site using <a href="https://github.com/suncat2000/MobileDetectBundle" rel="nofollow">MobileDetectBundle</a>.</p>
  
  <p>I'm trying to make a redirection to a mobile site like in the usage example. My config.yml is a copy/paste of what's in the readme.</p>
  
  <pre><code>mobile_detect:
      redirect:
          mobile: 
              is_enabled: true
              host: http://mobilesite.local
              status_code: 301
              action: redirect
          tablet: ~
      switch_device_view: ~
  </code></pre>
  
  <p>But when I hit <a href="http://website.local" rel="nofollow">http://website.local</a> nothing happens. I'm using <a href="https://addons.mozilla.org/fr/firefox/addon/user-agent-switcher/" rel="nofollow">User Agent Switcher Firefox extension</a> to appear as a mobile browser.</p>
  
  <p>The bundle seems well configured because when I use <code>is_mobile()</code> twig helper it detects me as a mobile.</p>
  
  <p>Any idea? Thanks in advance.</p>
  
  <p>Guillaume</p>