YARN-9493. Scheduler Page does not display the right page by query string. Contributed by Wanqiang Ji.

This commit is contained in:
Giovanni Matteo Fumarola 2019-05-13 10:57:12 -07:00
parent 5847e00143
commit 29ff7fb140
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,8 @@ public class SchedulerPageUtil {
html.
script().$type("text/javascript").
__("function reopenQueryNodes() {",
" var currentParam = window.location.href.split('?');",
" var currentParam = decodeURIComponent(window.location.href)"
+ ".split('?');",
" var tmpCurrentParam = currentParam;",
" var queryQueuesString = '';",
" if (tmpCurrentParam.length > 1) {",
@ -136,6 +137,7 @@ public class SchedulerPageUtil {
"};",
"",
"function removeQueueName(queryString, queueName) {",
" queryString = decodeURIComponent(queryString);",
" var index = queryString.indexOf(queueName);",
" // Finding if queue is present in query param then only remove it",
" if (index != -1) {",