这是indexloc提供的服务,不要输入任何密码
Skip to content

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

Co-authored-by: Twaik Yont <9674930+twaik@users.noreply.github.com>
@noob6t5 noob6t5 closed this by deleting the head repository Aug 2, 2025
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.

2 participants