github.com/outbrain/consul@v1.4.5/ui-v2/app/routes/dc/kv/folder.js (about) 1 // import Route from '@ember/routing/route'; 2 import Route from './index'; 3 4 export default Route.extend({ 5 templateName: 'dc/kv/index', 6 beforeModel: function(transition) { 7 this._super(...arguments); 8 const params = this.paramsFor('dc.kv.folder'); 9 if (params.key === '/' || params.key == null) { 10 return this.transitionTo('dc.kv.index'); 11 } 12 }, 13 });