This fixes #629 : redirecting to the url

@gordonwoodhull , please review.