0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test/unit
Fabien O'Carroll b0efad7ac9
Fixed img_url helper when using image sizes with relative path… (#10964)
closes #10949 

This updates the getImageWithSize function in the img_url helper to consider relative paths WITHOUT a leading slash the "base case". If a path does have a leading slash, we remove it, pass it through the function again, and then prepend the slash.
2019-07-29 16:54:09 +08:00
..
adapters Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
api Ensured Admin API cannot fetch internal integrations (#10501) 2019-07-24 11:52:55 +02:00
apps Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00
config Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
data Added global site SEO fields to be used in theme helpers (#10930) 2019-07-25 11:08:29 +02:00
helpers Fixed img_url helper when using image sizes with relative path… (#10964) 2019-07-29 16:54:09 +08:00
lib Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
models Ensured Admin API cannot fetch internal integrations (#10501) 2019-07-24 11:52:55 +02:00
public Refactored Ghost SDK unit test 2018-10-05 16:49:46 +02:00
services Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
web Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00