0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/initializers/trailing-history.js

19 lines
459 B
JavaScript
Raw Normal View History

2015-02-12 21:22:32 -07:00
import Ember from 'ember';
/*global Ember */
var trailingHistory = Ember.HistoryLocation.extend({
formatURL: function () {
// jscs: disable
return this._super.apply(this, arguments).replace(/\/?$/, '/');
// jscs: enable
}
});
export default {
name: 'registerTrailingLocationHistory',
initialize: function (registry, application) {
application.register('location:trailing-history', trailingHistory);
}
};