mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
18 lines
388 B
JavaScript
18 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);
|
|
}
|
|
};
|