Fixed bug where returned URL instead of redirecting to it.