fixed bug: infinite loop when doing forwarding in RedirectFilter