baseUrl missing on page rename

This commit is contained in:
Sunny Ripert
2012-07-25 11:20:53 +02:00
parent b5653464d2
commit 75a00e8821
@@ -140,11 +140,11 @@ $(document).ready(function() {
var msg = 'Renamed ' + oldName + ' to ' + name;
jQuery.ajax( {
type: 'POST',
url: '/edit/' + oldName,
url: baseUrl + '/edit/' + oldName,
// omit path: pathName until https://github.com/github/gollum/issues/446 is fixed.
data: { rename: name, page: oldName, message: msg },
success: function() {
window.location = '/' + encodeURIComponent(name);
window.location = baseUrl + '/' + encodeURIComponent(name);
}
});
}