0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

🐛 Fixed original url/query params not being used in bookmark cards

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
This commit is contained in:
Kevin Ansfield 2020-06-08 09:03:43 +01:00
parent 31d0966e2d
commit e1fd8cc11f
2 changed files with 5 additions and 5 deletions

View file

@ -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",

View file

@ -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"