set defaul url for action mailer, fix bug in routes