Ghost/core/server/api/v2/utils/serializers
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
..
input 🐛 Fixed relative image URLs becoming absolute URLs on save (#10025) 2018-10-18 12:18:47 +01:00
output Optimized usage of urls in API v2 2018-10-16 13:02:04 +02:00
index.js Added tiny framework to support multiple API versions (#9933) 2018-10-05 00:50:45 +02:00