wevote / WeVoteCordova

Cordova wrapper for the We Vote WebApp. Twitter: @WeVote
2 stars 6 forks source link

"Following" and "Followers" takes you to "Page not found" #148

Closed DaleMcGrew closed 4 years ago

DaleMcGrew commented 4 years ago

"Following" and "Followers" takes you to "Page not found" This problem exists on organizations with and without followers. (The count number doesn't matter.)

  1. Search for "sierraclub"
  2. Click on Colorado Sierra Club
  3. Click on either "0 Following" or "0 Followers"

The code that navigates you is in src/js/routes/VoterGuide/OrganizationVoterGuide.jsx on lines 398:

<a // eslint-disable-line
  style={{ padding: '5px 5px' }}
  onClick={() => this.goToVoterGuideDetailsPage('following')}
>

and 277 ('goToVoterGuideDetailsPage').

If the problem is the use of the "<a // eslint-disable-line", we can replace <a // eslint-disable-line with this, since we are already using an onClick:

<span
  className="u-link-color u-cursor--pointer"

Screen Shot 2020-08-26 at 6 33 49 AM