Skip to content

Commit

Permalink
fix: api invite redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyu2er committed Jan 6, 2025
1 parent d393d05 commit bcadfd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/route/invite.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { APP_URL } from '@hexa/env';
import { sendOrgInviteEmails } from '@hexa/server/lib';
import authOrg from '@hexa/server/middleware/org';
import { authInvite } from '@hexa/server/middleware/org-invite';
Expand Down Expand Up @@ -69,7 +70,7 @@ const invite = new Hono<Context>()
await acceptInvite(db, token, userId);
return c.redirect('/');
}
return c.redirect(`/login?next=${c.req.url}`);
return c.redirect(`/login?next=${APP_URL}/invite/${token}`);
}
);

Expand Down

0 comments on commit bcadfd2

Please sign in to comment.