Repository: ambari
Updated Branches:
  refs/heads/trunk 0c57d030a -> 986392c5c


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/986392c5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/986392c5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/986392c5

Branch: refs/heads/trunk
Commit: 986392c5c9a4e58d7f98b54621a0f3afd262f4d9
Parents: 0c57d03
Author: Alex Antonenko <[email protected]>
Authored: Wed Feb 25 18:50:22 2015 +0200
Committer: Alex Antonenko <[email protected]>
Committed: Wed Feb 25 19:11:07 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/986392c5/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('/');
       }

Reply via email to