Skip to content

Commit faba3ba

Browse files
committed
Fix a incorrect link
1 parent fdf5bba commit faba3ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/resources/org/apache/spark/ui/static/spark-dag-viz.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ function renderDagVizForJob(svgContainer) {
186186
var stageId = metadata.attr("stage-id");
187187
var containerId = VizConstants.graphPrefix + stageId;
188188
// Link each graph to the corresponding stage page (TODO: handle stage attempts)
189-
var stageLink = "/stages/stage/?id=" +
190-
stageId.replace(VizConstants.stagePrefix, "") + "&attempt=0&expandDagViz=true";
189+
var stageLink = $("#stage-" + stageId.replace(VizConstants.stagePrefix, "") + "-0")
190+
.find("a")
191+
.attr("href") + "&expandDagVis=true";
191192
var container = svgContainer
192193
.append("a")
193194
.attr("xlink:href", stageLink)

0 commit comments

Comments
 (0)