Ghost/ghost/admin/app/initializers/trailing-history.js

18 lines
398 B
JavaScript
Raw Normal View History

2015-02-13 07:22:32 +03:00
import Ember from 'ember';
const {HistoryLocation} = Ember;
let trailingHistory = HistoryLocation.extend({
formatURL() {
return this._super.apply(this, arguments).replace(/\/?$/, '/');
}
});
export default {
name: 'registerTrailingLocationHistory',
initialize(registry, application) {
application.register('location:trailing-history', trailingHistory);
}
};