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
15 stars 26 forks source link

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

Open DCGUY009 opened 5 days ago

DCGUY009 commented 5 days 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 5 days ago

@harshithtunuguntla I would like to work on this issue.