File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ) {
You can’t perform that action at this time.
0 commit comments