Skip to content

Commit 5521eb9

Browse files
authored
fix: Prevent showing "not found" page when opening link in new tab (#2849)
Resolves #2848 ## Changes Fixes "not found" page briefly being shown while app page is loading in a new tab.
1 parent 6aa0787 commit 5521eb9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,11 @@ export class App extends BtrixElement {
849849

850850
case "org": {
851851
if (!this.isUserInCurrentOrg) {
852+
if (this.authState && !this.userInfo) {
853+
// Wait for user info to finish loading
854+
return this.renderSpinner();
855+
}
856+
852857
return this.renderNotFoundPage();
853858
}
854859

0 commit comments

Comments
 (0)