Fixes url_for in mail