Topic: skip before filter dynamically (with condition)

Hi,

I have mobile web under mobile controller.

And While coming to mobile/index page i need to detect the OS, if the OS
is android redirect to android page and if OS is ios redirect to ios
page.

This i done using before_filter : detect_os

and the pages are redirected properly

My worry is,
under iphone page and android page, i have a button called "No thanks"
and if user clicks on "no thanks" button it should load "mobile/index"
page...

But as i have filter detect_os for index page it loops again and again
if i click "no thanks" button.

Kindly suggest me to skip filter(detect_os) and load mobile/index if
user clicks on "no thanks"

thanks in advance

Regards,
Jose

Last edited by martindjose (2013-02-18 08:42:52)