Ghost/core/frontend/services
Hannah Wolfe 1c7c246616 🐛 Fixed theme preview not decoding values properly
- Theme preview was not showing the same behaviour as a real theme because nulls were being encoded and decoded incorrectly causing nulls/empty strings to be treasted as truthy values
- Swap from using split to using proper query param parsing so that the code is more robust
- this still creates empty strings and the string 'null' so added a small function to decode these back to real nulls
- moved to its own file ready to be split out - there needs to be a bigger picture plan for this
- added unit tests to cover the known issues + some potential breakages from converting the header string to a query param object
2021-03-01 11:54:50 +00:00
..
apps Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
redirects Updated code to reflect js-yaml dependency changes 2021-02-10 11:39:30 +00:00
routing Finished to move the frontend to themes v4 2021-02-23 15:02:11 +01:00
rss Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
settings Updated code to reflect js-yaml dependency changes 2021-02-10 11:39:30 +00:00
sitemap Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
themes 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
url Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
proxy.js Refactored core/server/lib/image for Dependency Injection (#12463) 2020-12-09 13:19:22 +01:00