RBB-Website icon indicating copy to clipboard operation
RBB-Website copied to clipboard

Remove in-need parameter on main businesses page

Open brianjhanson opened this issue 4 years ago • 1 comments

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

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.

brianjhanson avatar Nov 13 '20 13:11 brianjhanson

Deploy request for rebuild-black-business accepted.

Accepted with commit b5ee6b598ac0082bbabe958cc1907691b9df4db6

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

netlify[bot] avatar Nov 13 '20 13:11 netlify[bot]