fixed redirection filter on app js