mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
23 lines
583 B
JavaScript
23 lines
583 B
JavaScript
import Ember from 'ember';
|
|
/*global Ember */
|
|
|
|
var trailingHistory,
|
|
registerTrailingLocationHistory;
|
|
|
|
trailingHistory = Ember.HistoryLocation.extend({
|
|
formatURL: function () {
|
|
// jscs: disable
|
|
return this._super.apply(this, arguments).replace(/\/?$/, '/');
|
|
// jscs: enable
|
|
}
|
|
});
|
|
|
|
registerTrailingLocationHistory = {
|
|
name: 'registerTrailingLocationHistory',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('location:trailing-history', trailingHistory);
|
|
}
|
|
};
|
|
|
|
export default registerTrailingLocationHistory;
|