suncat2000 / MobileDetectBundle

Symfony 2/3/4 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.
397 stars 154 forks source link

MobileDetectBundle make a loop of redirect #9

Closed yanddam closed 11 years ago

yanddam commented 12 years ago

salam

i install this bundle but it make a loop of redirection when it redirect to mobile site

here is what browser view

The webpage at http://www.foo.com/mobilr has resulted in too many redirects

HenriVesala commented 12 years ago

Is your mobile site another instance of same project?

yanddam commented 12 years ago

i don't understand your question but the mobile site is located in the same bundle of the full site, but in different controller

HenriVesala commented 12 years ago

So your site foo.com tries to redirect foo.com/mobilr when you use mobile?

charlieman commented 12 years ago

Instead of generating a new app in the project, wouldn't it be better to check in the request listener if it's trying to redirect to the same domain it's being called from?

HenriVesala commented 12 years ago

I haven't tried it. Doesn't this kind of behaviour conflict with regular redirects that you use within the page?

HenriVesala commented 11 years ago

No activity for over month in original issue