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