baseUrl missing on page rename
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user