Skip to content

Commit

Permalink
fix link path for candidate raw filings links
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyporkchops committed Jul 1, 2019
1 parent f67b94f commit 9be9c94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fec/fec/static/js/modules/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ var filings = {
helpers.buildAppUrl(['candidate', row.candidate_id], cycle),
'candidate'
);
// If committee ID is actually a candidate ID, use 'candidate' in URI
} else if (row.committee_id.match(/^[H, S, P]+\w+$/)) {
return columnHelpers.buildEntityLink(
row.committee_name,
helpers.buildAppUrl(['candidate', row.committee_id], cycle),
'committee'
);
} else if (row.committee_name) {
return columnHelpers.buildEntityLink(
row.committee_name,
Expand Down

0 comments on commit 9be9c94

Please sign in to comment.