Patch empty APP_URI issue on redirect to login