From b80f74bccd96f3ea8ff6f105dd55c9b1cf5602fd Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Wed, 22 Aug 2012 13:32:11 -0600 Subject: [PATCH] Remove protocol and host. --- lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js index 116f1672..1672f48d 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js @@ -97,7 +97,7 @@ $.save = function( commitMessage ) { var markdown = 'markdown'; var txt = editorSession.getValue(); var msg = defaultCommitMessage(); - var newLocation = location.protocol + '//' + location.host + baseUrl; + var newLocation = baseUrl; // 'a%2Fb' => a/b if (pathName) {