From f2258acafb63d768ae1d408184285e8169e1eb03 Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 4 May 2018 10:42:43 +0200 Subject: [PATCH] add querystring to url's in table component --- assets/js/components/Table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/components/Table.js b/assets/js/components/Table.js index 85f679d..fba7154 100644 --- a/assets/js/components/Table.js +++ b/assets/js/components/Table.js @@ -54,7 +54,7 @@ class Table extends Component { const tableRows = state.records !== null ? state.records.map((p, i) => { let ahref = document.createElement('a'); ahref.href = p.value; let classes = "table-row w" + Math.round(p.percentage_of_total); - let label = ahref.pathname; + let label = ahref.pathname + ahref.search; if( props.showHostname ) { label = ahref.hostname.replace('www.', '') + (ahref.pathname.length > 1 ? ahref.pathname : ''); }