Skip to content

Commit 23fd7be

Browse files
authored
Handle hash as well as query parameters in failure summary (#751)
1 parent 8f8080e commit 23fd7be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/resources/lib/hudson/test/js/failureSummary.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ function initializeShowHideLinks() {
3333
nextRow.dataset.type = "foldout-row";
3434
table.insertBefore(nextRow, tableRow.nextSibling);
3535

36-
// Clear the query parameters
37-
const cleanUrl = new URL(document.URL);
38-
cleanUrl.search = "";
39-
showSummary(td, cleanUrl + id.replace(PREFIX, '') + "summary");
36+
const summaryUrl = new URL(`${id.replace(PREFIX, '')}summary`, document.URL);
37+
showSummary(td, summaryUrl);
4038
} else {
4139
nextRow.remove();
4240
}

0 commit comments

Comments
 (0)