We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b13db4c commit 9c45051Copy full SHA for 9c45051
1 file changed
src/frontend/src/router/index.ts
@@ -110,7 +110,8 @@ const router = createRouter({
110
},
111
{
112
path: '/jobs/:id',
113
- component: () => import('../views/JobDashboardView.vue')
+ component: () => import('../views/JobDashboardView.vue'),
114
+ name: 'jobDashboard'
115
116
]
117
@@ -180,7 +181,8 @@ router.beforeEach(async (to, from) => {
180
181
182
const backButton = window.event?.type === 'popstate'
183
const backToSameType = to.meta?.type === from.meta?.type
- if(backButton && backToSameType) {
184
+ const jobBackToExperiment = to.name === 'experimentJobs' && from.name === 'jobDashboard'
185
+ if(backButton && (backToSameType || jobBackToExperiment)) {
186
to.meta.backButton = true
187
}
188
0 commit comments