Fix mobile framework redirect bug

Fix test #1