RBB-Website
RBB-Website copied to clipboard
Remove in-need parameter on main businesses page
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
- Main businesses page https://www.rebuildblackbusiness.com/businesses/
Screenshots / video of changes


Steps to test
- Go to rebuildblackbusiness.com and click "SEE BUSINESSES"
- Businesses displayed should match the businesses displayed on the
/businesses/all
page - Pagination should display many more than 12 pages.
Deploy request for rebuild-black-business accepted.
Accepted with commit b5ee6b598ac0082bbabe958cc1907691b9df4db6
https://app.netlify.com/sites/rebuild-black-business/deploys/5fae8f2c0da4a100072b803d