method to return an URL instead of a form for redirects instead of submitting