Skip to content

Commit 0343b56

Browse files
committed
fix: Pinned browser with preview form tabs
1 parent 38f53ba commit 0343b56

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

panel/src/components/Views/Preview/PreviewForm.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ export default {
5252
emits: ["discard", "input", "navigate", "submit"],
5353
computed: {
5454
tabsWithPreviewLinks() {
55+
const query = new URLSearchParams(window.location.search);
56+
5557
return this.tabs.map((tab) => {
58+
query.append("tab", tab.name);
59+
5660
return {
5761
...tab,
58-
link: this.$panel.view.path + "?tab=" + tab.name
62+
link: this.$panel.view.path + "?" + query.toString()
5963
};
6064
});
6165
}

0 commit comments

Comments
 (0)