ensure redirected url is of url! type

Signed-off-by: Graham Chiu <compkarori@gmail.com>