diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js index 6caf2d01..116f1672 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js @@ -102,6 +102,7 @@ $.save = function( commitMessage ) { // 'a%2Fb' => a/b if (pathName) { newLocation += '/' + unescape(pathName); + pathName = pathName + '/'; // pathName must end with / } newLocation += '/' + pageName;