Skip to content

Commit ae25084

Browse files
fix: urls
1 parent 542efb8 commit ae25084

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/core.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,11 @@ export class Core {
472472
const urlPath = msg.data.path.startsWith("/")
473473
? msg.data.path.slice(1)
474474
: msg.data.path;
475-
let url = `${env.APP_URL}${urlPath}`;
475+
let url;
476476
if (msg.data.orgSlug) {
477-
url += `?org=${msg.data.orgSlug}`;
477+
url = `${env.APP_URL}organizations/${msg.data.orgSlug}/${urlPath}`;
478+
} else {
479+
url = `${env.APP_URL}${urlPath}`;
478480
}
479481
await this.messenger.request("openUrl", url);
480482
});

0 commit comments

Comments
 (0)