Skip to content

Commit

Permalink
fix: Login redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
FOSSit committed Apr 13, 2024
1 parent 1a7712c commit fc0540a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(protected)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
user.subscribe(() => {
if (i) return i--; // prevent initial store set
// Very very bad practice:
if ($user.needsjointeam && location.pathname != '/dashboard')
if ($user.needsjointeam && location.pathname != `${base}/dashboard`)
location.replace(`${base}/dashboard`);
loading = false;
});
Expand Down

0 comments on commit fc0540a

Please sign in to comment.