Remove app redirect and use nginx rewrite