mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
fd79ed5317
refs #5943
18 lines
441 B
JavaScript
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);
|
|
}
|
|
};
|