Repository: incubator-zeppelin
Updated Branches:
  refs/heads/master 18c8c9ea5 -> 7fb04784b


Perfect get the redirectToUrl

Because of I use sub context path which like http://localhost:8080/zeppelin , 
in there have a little problem.

Author: opsun <[email protected]>

Closes #316 from opsun/patch-1 and squashes the following commits:

89776d1 [opsun] Perfect get the redirectToUrl


Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/7fb04784
Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/7fb04784
Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/7fb04784

Branch: refs/heads/master
Commit: 7fb04784bb668674c9c5609c50a0c343864ccdcf
Parents: 18c8c9e
Author: opsun <[email protected]>
Authored: Tue Sep 22 14:40:27 2015 +0800
Committer: Lee moon soo <[email protected]>
Committed: Wed Oct 14 11:13:23 2015 +0200

----------------------------------------------------------------------
 zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/7fb04784/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js 
b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
index aa53beb..52fe339 100644
--- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
+++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
@@ -1677,7 +1677,7 @@ angular.module('zeppelinWebApp')
 
   $scope.goToSingleParagraph = function () {
     var noteId = $route.current.pathParams.noteId;
-    var redirectToUrl = location.protocol + '//' + location.host + 
'/#/notebook/' + noteId + '/paragraph/' + $scope.paragraph.id+'?asIframe';
+    var redirectToUrl = location.protocol + '//' + location.host + 
location.pathname + '#/notebook/' + noteId + '/paragraph/' + 
$scope.paragraph.id+'?asIframe';
     $window.open(redirectToUrl);
   };
 });

Reply via email to