Ghost/core/server/api/v2/utils
Rishabh Garg 915d5612a1 🐛 Fixed relative image URLs becoming absolute URLs on save (#10025)
closes #10024

- Updated input serializers for posts/tags/users to handle absolute urls conversion

-------
1. Ghost stores relative images urls
2. API V2 returns images with absolute urls
3. Ghost-Admin sends absolute urls back on any save e.g. update user

**Current behavior**: This will override the relative image path in db to absolute, which in turn won't get updated in future if domain or protocol changes for e.g.
**Fix**: On save/update, input serializers converts any absolute image url paths back to relative if the base URL from image fields matches the configured URL
2018-10-18 12:18:47 +01:00
..
serializers 🐛 Fixed relative image URLs becoming absolute URLs on save (#10025) 2018-10-18 12:18:47 +01:00
validators Added users ctrl to v2 (#10001) 2018-10-12 23:27:30 +02:00
index.js Added tiny framework to support multiple API versions (#9933) 2018-10-05 00:50:45 +02:00
permissions.js Added settings ctrl to v2 2018-10-12 21:13:20 +02:00