Repository: ambari Updated Branches: refs/heads/branch-2.0.0 c6cc7026e -> 93b82b11e
AMBARI-9799. Ambari Tez View links do not work on Firefox (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/93b82b11 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/93b82b11 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/93b82b11 Branch: refs/heads/branch-2.0.0 Commit: 93b82b11e3806a6fcbb9b281da84652ffc66d543 Parents: c6cc702 Author: Alex Antonenko <[email protected]> Authored: Wed Feb 25 19:11:07 2015 +0200 Committer: Alex Antonenko <[email protected]> Committed: Wed Feb 25 19:22:22 2015 +0200 ---------------------------------------------------------------------- ambari-web/app/routes/views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/93b82b11/ambari-web/app/routes/views.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/routes/views.js b/ambari-web/app/routes/views.js index 68ba817..f77d516 100644 --- a/ambari-web/app/routes/views.js +++ b/ambari-web/app/routes/views.js @@ -37,7 +37,7 @@ module.exports = Em.Route.extend({ // find and set content for `mainViewsDetails` and associated controller var href = ['/views', params.viewName, params.version, params.instanceName].join('/'); - var viewPath = this.parseViewPath(params.instanceName); + var viewPath = this.parseViewPath(window.location.href.slice(window.location.href.indexOf('?'))); if (viewPath) { href = ['/views', params.viewName, params.version, params.instanceName.slice(0, params.instanceName.lastIndexOf('?'))].join('/'); }
