Skip to content

Commit 6e4ac89

Browse files
only conditionally force push to the route for collection builder
Keeps the routes cleaner, also hopefully will fix the unexpected selenium fails like: `Timeout waiting on CSS selector [[data-which-builder="...`.
1 parent bcf6543 commit 6e4ac89

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,13 @@ export default {
304304
const selection = Array.from(this.contentSelection.values());
305305
setSelectedItems(selection);
306306
307-
// vue-router 4 supports a native force push with clean URLs, but we're using a __vkey__
308-
// bit as a workaround to allow the builder to be invoked consecutively
309-
this.$router.push({ path: `/collection/new_list?advanced=${advanced}` }, { force: true });
307+
if (this.$route.path === "/collection/new_list") {
308+
// vue-router 4 supports a native force push with clean URLs, but we're using a __vkey__
309+
// bit as a workaround to allow the builder to be invoked consecutively
310+
this.$router.push({ path: `/collection/new_list?advanced=${advanced}` }, { force: true });
311+
} else {
312+
this.$router.push(`/collection/new_list?advanced=${advanced}`);
313+
}
310314
},
311315
// Selected content manipulation, hide/show/delete/purge
312316
hideSelected() {

0 commit comments

Comments
 (0)