Skip to content

Commit

Permalink
Merge pull request #17687 from dannon/fix-selenium-scratchbook-display
Browse files Browse the repository at this point in the history
[24.0] Fix contentitem display routing.
  • Loading branch information
mvdbeek authored Mar 13, 2024
2 parents 8d21e52 + 2493844 commit c72e928
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/components/History/Content/ContentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,11 @@ function onDisplay() {
// but we're using a __vkey__ bit as a workaround
// Only conditionally force to keep urls clean most of the time.
if (route.path === itemUrls.value.display) {
// @ts-ignore
// @ts-ignore - monkeypatched router, drop with migration.
router.push(itemUrls.value.display, { title: props.name, force: true });
} else if (itemUrls.value.display) {
router.push({ path: itemUrls.value.display, params: { title: props.name } });
// @ts-ignore - monkeypatched router, drop with migration.
router.push(itemUrls.value.display, { title: props.name });
}
}
}
Expand Down

0 comments on commit c72e928

Please sign in to comment.