Fixed the url stuff in sails