TryGhost / Ghost

Independent technology for modern publishing, memberships, subscriptions and newsletters.
https://ghost.org
MIT License
46.2k stars 10.1k forks source link

outbound link tagging breaks links with a '#' in them #20492

Open halphalp opened 2 days ago

halphalp commented 2 days ago

Issue Summary

specific links that have '#' in them are broken when ghost appends the ref= tags to them, as it inserts the referral tag before the '#' instead of after.

Steps to Reproduce

  1. link to a site with '#' in the link
  2. publish post
  3. notice the link is now broken because of the outbound tag

Ghost Version

5.87.0

Node.js Version

Latest supported

How did you install Ghost?

Docker

Database type

MySQL 5.7

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

vikaspotluri123 commented 2 days ago

Can you share an example? That sounds like the correct behavior