Skip to content

Commit c79618b

Browse files
authored
Fix browser history for navigation between tables (baserow#4770)
1 parent 1a31c16 commit c79618b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web-frontend/modules/database/pages/table.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ if (error.value) {
179179
}
180180
181181
if (data.value?.redirect) {
182-
// We have a redirect, we can apply it now
183-
await navigateTo(data.value.redirect.href)
182+
// We have a redirect, we can apply it now. Using `replace` so the intermediate
183+
// URL (without viewId) doesn't stay in the browser history — otherwise the back
184+
// button would land on it and immediately redirect forward again.
185+
await navigateTo(data.value.redirect.href, { replace: true })
184186
}
185187
186188
/**

0 commit comments

Comments
 (0)