Ghost/core/server
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
..
adapters Refactored direct usages of api controllers 2018-09-21 15:18:22 +02:00
api 🐛 Fixed relative image URLs becoming absolute URLs on save (#10025) 2018-10-18 12:18:47 +01:00
apps 🐛 Fixed redirect issue with private sites (#9960) 2018-10-08 16:31:08 +07:00
config Refactored config to handle direct calls for specific version (#10012) 2018-10-16 15:20:51 +05:30
data Excluded sessions table from exporter (#9961) 2018-10-17 18:29:24 +07:00
helpers Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
lib Extended sequence utility 2018-10-03 00:17:45 +02:00
models Updated webhooks schema and add relation (#10018) 2018-10-17 18:17:13 +07:00
public Removed change frequency and priority fields from sitemap generator (#9771) 2018-09-24 19:16:31 +02:00
services 🐛 Fixed relative image URLs becoming absolute URLs on save (#10025) 2018-10-18 12:18:47 +01:00
translations Respected hasUserPermissions & hasAppPermissions in invite model 2018-10-16 18:00:05 +02:00
views Fixed error trying to render 404 for missing asset 2017-12-22 20:08:59 +00:00
web Added spam prevention for v2 sessions (#10030) 2018-10-18 09:58:29 +01:00
analytics-events.js Cleared out old unused events 2017-12-13 09:08:25 +00:00
filters.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
ghost-server.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
index.js Refactored method urlFor to use versionType instead of admin: true 2018-10-04 16:49:55 +05:30
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js Migrated update check to use api v2 2018-10-18 00:13:31 +02:00