harshithtunuguntla / project-osus

HacktoberFest OpenSource URLShortener Application - Participate in Hacktoberfest by contributing to any Open Source project on GitHub! Here is a starter project for first time contributors. #hacktoberfest
https://project-osus.vercel.app
18 stars 42 forks source link

[ENHANCEMENT] Enhance URL validation to automatically prepend 'https://' to links #24

Open DCGUY009 opened 1 month ago

DCGUY009 commented 1 month ago

Description

Currently, the URL field does not recognize "www.x.com" as a valid link. To improve user experience, we should automatically prepend "https://" to URLs when users don't include a protocol.

Proposed Enhancement

If the URL is entered without a protocol, automatically prepend "https://". If the provided URL already includes "http://" or "https://" leave it unchanged.

Benefits

This will make it easier for users to use the app as they don't have to modify their link by adding protocols when they are manually entering or entering a URL without the protocol.

Images Related to the Enhancement

Screenshot_20241011-143534.png

Screenshot_20241011-143553.png

vinayakchandra commented 1 month ago

@harshithtunuguntla I would like to work on this issue.

DCGUY009 commented 1 month ago

This issue is open to work on, please comment by tagging me to get assigned!