lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js in gollum-2.1.0 vs lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js in gollum-2.1.2
- old
+ new
@@ -97,11 +97,13 @@
var markdown = 'markdown';
var txt = editorSession.getValue();
var msg = defaultCommitMessage();
var newLocation = location.protocol + '//' + location.host + baseUrl;
+ // 'a%2Fb' => a/b
if (pathName) {
- newLocation += '/' + pathName;
+ newLocation += '/' + unescape(pathName);
+ pathName = pathName + '/'; // pathName must end with /
}
newLocation += '/' + pageName;
// if &create=true then handle create instead of edit.