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

Added Auto-prepend https:// to URLs without scheme in termux-open-url #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noob6t5
Copy link

@noob6t5 noob6t5 commented Nov 6, 2024

In this PR I have added script for the https:// scheme to URLs that do not already include a scheme.I have specifically added support for https:// as it is more secure compared to http://. Since security is a priority, I chose to default to https:// to ensure that URLs are opened over a secure connection whenever possible. http:// support has not been added for this reason. We can add later too.

Before the Change:
If a user tried to open a URL like google.com without specifying the scheme, the script would fail, and the user would not be able to visit the link.

before

After the Change:
Now, if a user provides a URL without a scheme (e.g., google.com), the script automatically adds https:// to the URL, redirecting user from a browser.

after

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

Successfully merging this pull request may close these issues.

1 participant