Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Link preview strips off anchor part #1145

Open
1 task done
paulmelis opened this issue Nov 5, 2023 · 0 comments
Open
1 task done

[BUG] Link preview strips off anchor part #1145

paulmelis opened this issue Nov 5, 2023 · 0 comments

Comments

@paulmelis
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using a URL with an anchor in a post, i.e. ..../bla#anchor, the link preview at the bottom of the post does not include the anchor part, leading to an incorrect destination.

Expected Behavior

The link preview should link to the exact URL in the post, and leave the anchor attached

Steps To Reproduce

  1. Go to https://mastodon.gamedev.place/@paulmelis/111351759115031787
  2. The URL in the post text is https://github.com/mastodon/mastodon/pull/23261#issuecomment-1547543362, yet the link for the link preview at the bottom is https://github.com/mastodon/mastodon/pull/23261, missing the anchor part.

This is actually also an issue in the regular web-version of Mastodon. But it's really weird as viewing the same post from step 1 in the Ivory app actually does use the correct link (including the anchor) for the preview.

Environment

- Device: iPhone 13
- OS: iOS
- Version: 16.6.1
- Build: v2023.13 (348)

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant