0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app/initializers/trailing-history.js
2015-11-30 12:23:47 -06:00

17 lines
388 B
JavaScript

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