webdev-20 / shorti-url-shortener

Url Shortener
http://shorti.onrender.com/
7 stars 18 forks source link

[Bug] Url validation is inconsistent in frontend and backend #84

Closed cherylli closed 2 years ago

cherylli commented 2 years ago

Describe the bug

  1. For example, google.com is valid in the frontend but not valid in the backend
  2. some actual valid url is showing up as invalid on frontend (https://www.youtube.com/watch?v=06uXvfmyVI8&ab_channel=JoshuaFluke)

To Reproduce press "shorten" button in the frontend, it will say it's valid but we get an error from the backend saying the url is invalid

Expected behavior The checks should be consistent

Possible fix use the same url validation package in the backend, we might have to find another url validation package