Skip to content

Commit

Permalink
Merge pull request #3008 from fecgov/feature/2865-raw-filings-candida…
Browse files Browse the repository at this point in the history
…te-links

Fix  URL path in links for candidate raw filings links
  • Loading branch information
lbeaufort committed Jul 1, 2019
2 parents f67b94f + 9be9c94 commit 4ff7b66
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 4ff7b66

Please sign in to comment.