We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa2623a commit 597c49dCopy full SHA for 597c49d
1 file changed
packages/workspace/application-center/src/Main.vue
@@ -208,7 +208,18 @@ export default {
208
209
const openApplication = (template) => {
210
const href = window.location.href.split('?')[0] || './'
211
- window.open(`${href}?type=app&id=${template.id}&tenant=${template.tenantId || queryParams.get('tenant')}`)
+ const newUrl = `${href}?type=app&id=${template.id}&tenant=${template.tenantId || queryParams.get('tenant')}`
212
+ if (window.self !== window.top) {
213
+ window.parent.postMessage(
214
+ {
215
+ type: 'openNewTab',
216
+ url: newUrl
217
+ },
218
+ '*'
219
+ )
220
+ } else {
221
+ window.open(newUrl)
222
+ }
223
}
224
225
const typeClick = (type) => {
0 commit comments