TelegramMessenger / TelegramMessenger/Telegram-iOS

[Firefox] Urls without protocol specified can't be opened in browser

Open
#294 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
9k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

Checklist
  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues
Description

Using Firefox as default browser for opening links. In Telegram when I click on url that doesn't have a protocol in it (e.g. example.com) it opens a Firefox with a blank page.

Expected Behavior

Telegram should provide a protocol in the url so that Firefox can open it. So that when I click on url example.com, Telegram passes it as http://example.com to Firefox.

Actual Behavior

When I click on url without protocol (e.g. example.com) it opens a Firefox with a blank page.

Steps to Reproduce
  1. Open Telegram.
  2. Go to Settings and set Firefox as default browser for opening links.
  3. Go to "Saved messages".
  4. Send yourself a message: example.com.
  5. Click on a link in sent message.
  6. Observe Firefox opening a new blank tab without url.
Environment

Device: iPhone 7

iOS version: 13.4.1

App version: 6.1.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on an iPhone running iOS 13.4.1 with Firefox set as the default browser, using a protocol-less URL such as example.com from Saved Messages. Trace the link-opening path and verify that the completed change opens the URL with a protocol instead of a blank Firefox tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.