2015-02-13 07:22:32 +03:00
|
|
|
import Ember from 'ember';
|
2014-05-14 05:52:31 +04:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
const {HistoryLocation} = Ember;
|
|
|
|
|
|
|
|
let trailingHistory = HistoryLocation.extend({
|
|
|
|
formatURL() {
|
2014-06-16 00:54:58 +04:00
|
|
|
return this._super.apply(this, arguments).replace(/\/?$/, '/');
|
2014-05-14 05:52:31 +04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2015-08-19 14:55:40 +03:00
|
|
|
export default {
|
2014-05-14 05:52:31 +04:00
|
|
|
name: 'registerTrailingLocationHistory',
|
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
initialize(registry, application) {
|
2014-05-14 05:52:31 +04:00
|
|
|
application.register('location:trailing-history', trailingHistory);
|
|
|
|
}
|
|
|
|
};
|