Send correct url in emails