From e1fd8cc11fb9256c05a1824b1171025c771821e7 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 8 Jun 2020 09:03:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20original=20url/query=20p?= =?UTF-8?q?arams=20not=20being=20used=20in=20bookmark=20cards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/Ghost/issues/11212 credit @devaman https://github.com/TryGhost/Ghost/pull/11542 - use `payload.url` for the `href` which is the originally entered url rather than `payload.metadata.url` which is the final url after redirects and metascraper extraction - retains query params and redirects which are useful for things like affiliate links --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e3a1df00cd..7641a55034 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@tryghost/image-transform": "0.2.4", "@tryghost/kg-card-factory": "2.0.0", "@tryghost/kg-default-atoms": "2.0.0", - "@tryghost/kg-default-cards": "2.0.0", + "@tryghost/kg-default-cards": "2.0.1", "@tryghost/kg-markdown-html-renderer": "2.0.0", "@tryghost/kg-mobiledoc-html-renderer": "2.0.1", "@tryghost/members-api": "0.20.0", diff --git a/yarn.lock b/yarn.lock index 16724db699..d7a23ba854 100644 --- a/yarn.lock +++ b/yarn.lock @@ -443,10 +443,10 @@ resolved "https://registry.yarnpkg.com/@tryghost/kg-default-atoms/-/kg-default-atoms-2.0.0.tgz#5924aec514810b10e1657c4e7664c24155e43023" integrity sha512-BJpE3CITXqsnRmAoRcFGufyYKwnKXbVofShHKXaX8TUUe5ifL/HUndklLCC12Ou5r3qp+OPRJrAIe+ZWKbuEvQ== -"@tryghost/kg-default-cards@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@tryghost/kg-default-cards/-/kg-default-cards-2.0.0.tgz#34180131dba5fb2b1aa9aee230ff63a7d57ef803" - integrity sha512-GoG3ypOgFQkCFzh+Zgnyd3raRy+XsvikMw0EfaJ3qRrpQrJmQ+U+AGozUy3xKFfkTP+XnRpC00tglFKR4tC2aA== +"@tryghost/kg-default-cards@2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@tryghost/kg-default-cards/-/kg-default-cards-2.0.1.tgz#6e4f74439620dc007717e3c429fcdc3f1514da63" + integrity sha512-EGrWWabR6N2oP+KMmqPsTqy10mRopSWHfl5tZeILW+ki4fiNrpMGf32Yp3olIWWaNN0JowRuxKTtvmZFmELR0w== dependencies: "@tryghost/kg-markdown-html-renderer" "^2.0.0" "@tryghost/url-utils" "^0.6.14"