From 9be9c94f75f7d990c24868d2d4147cc28f32c274 Mon Sep 17 00:00:00 2001 From: john carroll Date: Mon, 1 Jul 2019 10:51:54 -0400 Subject: [PATCH] fix link path for candidate raw filings links --- fec/fec/static/js/modules/columns.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fec/fec/static/js/modules/columns.js b/fec/fec/static/js/modules/columns.js index 963142aab..dcd685563 100644 --- a/fec/fec/static/js/modules/columns.js +++ b/fec/fec/static/js/modules/columns.js @@ -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,