mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
64c9e66b56
refs https://github.com/TryGhost/Team/issues/2805 When we render mobiledoc to HTML, it automatically escapes HTML entities in the process, so a button or directly pasted link with href="https://example.com?code=test" will be rendered as href="https://example.com?code=test" as the url is encoded in the rendered HTML. Our link tracking was using the encoded URL as the redirect URL in newsletters, causing certain links to break. This change updates the link tracking to decode the URL with `entities.decode(url)` so we store the correct redirect URL in our DB and ensure link tracking redirects to the correct url from newsletters. --------- Co-authored-by: Rishabh <zrishabhgarg@gmail.com> |
||
---|---|---|
.. | ||
utils | ||
.eslintrc.js | ||
batch-sending-service.test.js | ||
email-controller.test.js | ||
email-event-processor.test.js | ||
email-event-storage.test.js | ||
email-renderer.test.js | ||
email-segmenter.test.js | ||
email-service.test.js | ||
mailgun-email-provider.test.js | ||
sending-service.test.js |