diff --git a/app/controllers/events/view/sessions/list.js b/app/controllers/events/view/sessions/list.js index 9fd791a725b..dd5d4155d4e 100644 --- a/app/controllers/events/view/sessions/list.js +++ b/app/controllers/events/view/sessions/list.js @@ -132,8 +132,8 @@ export default class extends Controller.extend(EmberTableControllerMixin) { } @action - viewSession(id) { - this.transitionToRoute('my-sessions.view', id); + viewSession(session_id, event_id) { + this.transitionToRoute('public.sessions.view', event_id, session_id); } @action diff --git a/app/controllers/my-sessions/view.js b/app/controllers/public/sessions/view.js similarity index 100% rename from app/controllers/my-sessions/view.js rename to app/controllers/public/sessions/view.js diff --git a/app/router.js b/app/router.js index 618d9533fc9..45d4d594041 100644 --- a/app/router.js +++ b/app/router.js @@ -41,7 +41,8 @@ Router.map(function() { this.route('oauth', { path: '/oauth/callback' }); this.route('public', { path: '/e/:event_id' }, function() { this.route('sessions', function() { - this.route('list', { path: '/s/:session_status' }); + this.route('list', { path: '/:session_status' }); + this.route('view', { path: '/:session_id' }); }); this.route('cfs', { path: '/cfs/:speaker_call_hash' }, function() { this.route('new-speaker'); @@ -128,7 +129,6 @@ Router.map(function() { }); this.route('my-sessions', function() { this.route('list', { path: '/:session_status' }); - this.route('view', { path: '/s/:session_id' }); }); this.route('notifications', function() { this.route('all', { path: '/:notification_state' }); diff --git a/app/routes/my-sessions/view.js b/app/routes/public/sessions/view.js similarity index 100% rename from app/routes/my-sessions/view.js rename to app/routes/public/sessions/view.js diff --git a/app/templates/components/session-card.hbs b/app/templates/components/session-card.hbs index 8ed631848d8..eda2d9b79d9 100644 --- a/app/templates/components/session-card.hbs +++ b/app/templates/components/session-card.hbs @@ -1,13 +1,13 @@