We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65a276c commit 4661b9bCopy full SHA for 4661b9b
1 file changed
packages/web-runtime/src/components/Topbar/TopBar.vue
@@ -9,7 +9,7 @@
9
v-if="appMenuExtensions.length && !isEmbedModeEnabled && !hideAppSwitcher"
10
:menu-items="appMenuExtensions"
11
/>
12
- <router-link v-if="!hideLogo" :to="homeLink" class="oc-width-1-1 oc-logo-href">
+ <router-link v-if="!hideLogo" :to="homeLink" :target="isEmbedModeEnabled ? '_blank' : null" class="oc-width-1-1 oc-logo-href">
13
<oc-img :src="currentTheme.logo.topbar" :alt="sidebarLogoAlt" class="oc-logo-image" />
14
</router-link>
15
</div>
@@ -112,6 +112,14 @@ export default {
112
}
113
114
115
+ if (isEmbedModeEnabled) {
116
+ const currentRoute = unref(router.currentRoute)
117
+ return {
118
+ name: currentRoute.name,
119
+ params: currentRoute.params
120
+ }
121
122
+
123
return '/'
124
})
125
0 commit comments