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 Report: Incorrect Referral Link Display in Telegram Desktop #28376

Closed
artem-astafyev opened this issue Sep 9, 2024 · 3 comments
Closed

Comments

@artem-astafyev
Copy link

Steps to reproduce

  1. Open Telegram Desktop.
  2. Send a message containing a referral link with a query parameter (e.g., https://github.com/?ref=1).
  3. Observe the generated preview card for the link below with incorrect ref parameter like https://github.com/?ref=10860 or https://github.com/.

Expected behaviour

The preview card should display the same link as the one shared in the message, including the correct referral parameter.

Actual behaviour

When sending a referral link with a query parameter (e.g., https://github.com/?ref=1) via Telegram Desktop, the preview card beneath the link displays an incorrect URL. For instance, instead of the original referral link, the card shows a different link such as https://github.com/ or https://github.com/?ref=10860. Notably, the correct link is displayed above the card, but the card itself displays a mismatched URL.

Operating system

Windows 10

Version of Telegram Desktop

5.5.1

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@artem-astafyev
Copy link
Author

artem-astafyev commented Sep 9, 2024

Additional Notes:

  1. Other query parameters like sub or other common parameters are not affected. The issue seems specific to the ref parameter.
  2. The text of the link in the message itself remains correct; only the preview card is impacted.

@ilya-fedin
Copy link
Contributor

link previews are server side

@john-preston
Copy link
Member

I guess server attaches a web page preview without 'ref' parameters. I'm not sure if I have to override it somehow or not.

In case you attach several same links with different 'ref' parameters I'll have no way to understand which of them gave the no-'ref' link preview at all 🤔

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

No branches or pull requests

4 participants