Ghost/core/server/services/url
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
..
index.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
Queue.js Added ability to upload/reload routes.yaml 2018-08-16 12:13:24 +02:00
Resource.js Minimized cached data on resource add/update 2018-08-12 14:23:32 +02:00
Resources.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
UrlGenerator.js Added advanced filtering to Dynamic Routing (#9757) 2018-08-16 12:13:24 +02:00
Urls.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
UrlService.js Added ability to upload/reload routes.yaml 2018-08-16 12:13:24 +02:00
utils.js 🐛 Fixed relative image URLs becoming absolute URLs on save (#10025) 2018-10-18 12:18:47 +01:00