From c09bf023a269b15ce7fee3c9d81377830cb36777 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Mon, 23 Oct 2017 16:34:57 -0400 Subject: [PATCH] fix textpath refs on angular/firefox someone is breaking fragment references on angular/firefox see dc-js/dc.js#1079 for more details --- src/diagram.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/diagram.js b/src/diagram.js index 47157510..05cf1720 100644 --- a/src/diagram.js +++ b/src/diagram.js @@ -1484,7 +1484,8 @@ dc_graph.diagram = function (parent, chartGroup) { .attr('startOffset', '50%') .attr('xlink:href', function(d) { var id = _chart.textpathId(d); - return '#' + id; + // angular on firefox needs absolute paths for fragments + return window.location.href.split('#')[0] + '#' + id; }); var textPaths = _defs.selectAll('path.edge-label-path') .data(wedges, _chart.textpathId);