baseUrl missing on page rename
This commit is contained in:
@@ -140,11 +140,11 @@ $(document).ready(function() {
|
|||||||
var msg = 'Renamed ' + oldName + ' to ' + name;
|
var msg = 'Renamed ' + oldName + ' to ' + name;
|
||||||
jQuery.ajax( {
|
jQuery.ajax( {
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '/edit/' + oldName,
|
url: baseUrl + '/edit/' + oldName,
|
||||||
// omit path: pathName until https://github.com/github/gollum/issues/446 is fixed.
|
// omit path: pathName until https://github.com/github/gollum/issues/446 is fixed.
|
||||||
data: { rename: name, page: oldName, message: msg },
|
data: { rename: name, page: oldName, message: msg },
|
||||||
success: function() {
|
success: function() {
|
||||||
window.location = '/' + encodeURIComponent(name);
|
window.location = baseUrl + '/' + encodeURIComponent(name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user