Skip to content

Commit 5deb160

Browse files
committed
Fixes #639
1 parent 3d4613a commit 5deb160

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
- Fix: remove trailing slash in `scim_url`
1111
- Fix: send PATCH request for change of displayName of Group (e.g. the name of the Role)
12+
- Fix: accept invitation in same window as where the invitation was send, now works
1213

1314
## 1.0.2
1415

welcome/src/pages/App.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ export const App = () => {
4646
if (res.name && !isInvitationAcceptFlow) {
4747
route = "/deadend";
4848
} else if (pathname === "/" || pathname.startsWith("/login") || isInvitationAcceptFlow) {
49-
route = isInvitationAcceptFlow ? pathname : (window.location.pathname + window.location.search);
49+
//for an invitation accept flow we add the search parameters when the user is already logged in
50+
if (isInvitationAcceptFlow && pathname.indexOf("hash") === -1) {
51+
route = (pathname + window.location.search);
52+
} else {
53+
route = isInvitationAcceptFlow ? pathname : (window.location.pathname + window.location.search);
54+
}
55+
5056
}
5157
}
5258
if (!isEmpty(route)) {

0 commit comments

Comments
 (0)