You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by mo...@apache.org on 2015/10/14 11:12:49 UTC
incubator-zeppelin git commit: Perfect get the redirectToUrl
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 <ce...@qq.com>
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 <ce...@qq.com>
Authored: Tue Sep 22 14:40:27 2015 +0800
Committer: Lee moon soo <mo...@apache.org>
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);
};
});