fix proper redirection for mobile app