make sure resource urls are relative to the api root before saving