getUrl() and redirect()