Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 73 forks source link

[BUG] "Register A Business" Form: Make Protocol Mandatory on ALL URLs #379

Closed elchris closed 3 years ago

elchris commented 3 years ago

Describe the bug When filling out information to Register a Business, a user is still allowed to enter URLs without a protocol. We must enforce that client side.

To Reproduce Steps to reproduce the behavior:

  1. Go here https://www.rebuildblackbusiness.com/businesses
  2. Click on 'Register a Business'
  3. Scroll down to 'Website'
  4. Notice that while it suggests that you enter a protocol, it does not enforce it
  5. Check the box that says "Business has an ongoing donation campaign"
  6. Notice the same issue with "Donation Link" field

Expected behavior No form should be allowed to be submitted without all URLs having a protocol in front of them

Actual Behavior www.foo.com is allowed and 99% of the time what people put in there.

Epilogue and Broader Context

brianjhanson commented 3 years ago

I can take a look at this one