mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
no issue - https://github.com/DockYard/ember-suave/releases/tag/v2.0.0 - fix linting errors arising from new rules
17 lines
379 B
JavaScript
17 lines
379 B
JavaScript
import Ember from 'ember';
|
|
|
|
const {HistoryLocation} = Ember;
|
|
|
|
let trailingHistory = HistoryLocation.extend({
|
|
formatURL() {
|
|
return this._super(...arguments).replace(/\/?$/, '/');
|
|
}
|
|
});
|
|
|
|
export default {
|
|
name: 'registerTrailingLocationHistory',
|
|
|
|
initialize(application) {
|
|
application.register('location:trailing-history', trailingHistory);
|
|
}
|
|
};
|