mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 01:40:21 +03:00
4fcf313816
no-issue The previous version of url-utils's absoluteToRelative function had some implicit behaviour that was relied on here. Namely that when passed an empty string as the url AND the withoutSubdirectory option set to true, we would end up calling the `replace` method on `null` - this would throw an error and cause the subscribers app to enter the error handling - which was desired behaviour. This updates to explicitly check, and execute the error handling based on the missing location property. |
||
---|---|---|
.. | ||
apps | ||
helpers | ||
meta | ||
services |