Rebuild-Black-Business / RBB-Website

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

Remove in-need parameter on main businesses page #378

Open brianjhanson opened 3 years ago

brianjhanson commented 3 years ago

Not sure this is the best way to fix this, but I think it's at least a way.

This PR alters the searchingInNeed function within the businesses template to return 'false' both when the location.pathname is /businesses/all and when it is /businesses. The latter should only match when /businesses is the only URL path and should account for an optional trailing slash.

Fixes #370

Pages/Interfaces that will change

Screenshots / video of changes

CleanShot 2020-11-13 at 07 48 59 CleanShot 2020-11-13 at 07 49 10

Steps to test

  1. Go to rebuildblackbusiness.com and click "SEE BUSINESSES"
  2. Businesses displayed should match the businesses displayed on the /businesses/all page
  3. Pagination should display many more than 12 pages.
netlify[bot] commented 3 years ago

Deploy request for rebuild-black-business accepted.

Accepted with commit b5ee6b598ac0082bbabe958cc1907691b9df4db6

https://app.netlify.com/sites/rebuild-black-business/deploys/5fae8f2c0da4a100072b803d