Cerix
April 25, 2020, 4:36pm
1
Hello guys, I noticed that if I insert an affiliate link or a short url in a post it is converted into a bookmark, but the original url is rewritten losing the affiliate tag.
Original url https://sitename com/pagename.html?p=affiliatetag
Bookmark url => https://sitename com/pagename.html
Since one of the ways I monetize my blog is through affiliate links, how can I populate bookmarks without changing the original url entered?
it would also be nice to have a tool to create custom bookmarks because many sites lack the information needed to self generate a bookmark
Hey Cerix,
You can get around the automatic generation of bookmark cards by holding shift when pasting a link.
Regarding the issue on bookmark cards themselves, this has been reported on GitHub which you can track here:
opened 08:34AM - 08 Oct 19 UTC
closed 04:40PM - 08 Jun 20 UTC
good first issue
help wanted
### Issue Summary
Bookmark card has few minor issues atm as listed below -
…
- Better error message handling: Currently bookmark card fails with `Unable to parse URL` error in case of all failures including insufficient metadata available. We should differentiate between "unable to parse" and "page has insufficient metadata" cases and show appropriate error message to avoid confusion (ref: https://github.com/TryGhost/Ghost/issues/11201)
- Storing original url on payload: We currently store the url grabbed from page's metadata in the bookmark card payload, which might not be pointing to original pasted url in many cases. We should improve our handling of this by storing the url that is pasted in rather than one that is grabbed from the page. (ref: https://github.com/TryGhost/Ghost/issues/11209)
- Fixing empty payload for invalid cases: In case of invalid bookmark card, we currently store `payload` as `{}`, unlike `embed` card which stores original `url` as part of payload - `payload: {url: '....'}`. Bookmark card payload needs to be updated to mimic same behavior because it lets the user click the retry/paste as link buttons to get their original url back.
Seems abandoned I’m afraid? “This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs(…)”
Cerix
April 27, 2020, 6:11pm
4
Hello David, is the bookmarks parsing process managed only by oembed.js ?
The issue is still open. You’re welcome to help with code contributions
Oh I’d love to but I’m afraid I’m not clever enough, don’t have the brains for that you see. I’ll stick to asking questions for the moment.
Ghost and your team are absolutely terrific, I’m immensively grateful for your efforts and what you are building.
1 Like