actually return the redirected result

please see comments in the code