Ghost/core/client/app/initializers/trailing-history.js
2015-11-20 10:13:30 +00:00

18 lines
441 B
JavaScript

import Ember from '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);
}
};