Changed code to use home_url instead of replacing the hot name via parse_url.