Skip to content

Commit

Permalink
🐛 Fixed original url/query params not being used in bookmark cards
Browse files Browse the repository at this point in the history
refs #11212
credit @devaman #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
  • Loading branch information
kevinansfield committed Jun 8, 2020
1 parent 31d0966 commit e1fd8cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e1fd8cc

Please sign in to comment.