Fix subdomains in a link and redirect_to