TherkuTech / tturl

Shorten your URLs in one click
https://tturl.netlify.app/
MIT License
8 stars 20 forks source link

Redirection Issue with URL Shortener #40

Open KumarAmrendram opened 3 days ago

KumarAmrendram commented 3 days ago

Description When any URL prefixed with www (e.g., www.google.com) is shortened, the app incorrectly redirects to a URL with a duplicated prefix (e.g., www.www.google.com). This results in broken links and affects all URLs entered with the www prefix.

To Reproduce Steps to reproduce the behavior:

  1. Open the URL shortener web app in Internet Explorer.
  2. Enter the URL www.google.com in the input field.
  3. Click on the "Shorten" button.

Shortened URL: https://tturl.netlify.app/3oy9uo1

Expected behavior The shortened URL should redirect to www.google.com.

Actual Behavior The app redirects to www.www.google.com, resulting in a broken link.

Screenshots

Screenshot 2024-10-07 at 9 18 40 PM

Desktop:

muruga21 commented 3 days ago

@KumarAmrendram Yeah Kumar.. Thanks for finding this issue.. please work on it..