@elliemae/pui-app-sdk 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,8 +156,9 @@ const authorize = async ({
|
|
|
156
156
|
(0, import_appdynamics.setAppDynamicsUserData)({ instanceId, userId: userName });
|
|
157
157
|
const data = await (0, import_users.getUser)({ userName });
|
|
158
158
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
159
|
-
|
|
160
|
-
import_history.browserHistory.replace(
|
|
159
|
+
const pathName = new URL(redirectUri).pathname;
|
|
160
|
+
import_history.browserHistory.push(`${pathName.replace(/\/$/, "")}/_rerender`);
|
|
161
|
+
import_history.browserHistory.replace(pathName);
|
|
161
162
|
} catch (err) {
|
|
162
163
|
const code = err?.response?.data?.code;
|
|
163
164
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|
|
@@ -131,8 +131,9 @@ const authorize = async ({
|
|
|
131
131
|
setAppDynamicsUserData({ instanceId, userId: userName });
|
|
132
132
|
const data = await getUser({ userName });
|
|
133
133
|
sessionStorage.setItem("userSettings", JSON.stringify(data));
|
|
134
|
-
|
|
135
|
-
history.replace(
|
|
134
|
+
const pathName = new URL(redirectUri).pathname;
|
|
135
|
+
history.push(`${pathName.replace(/\/$/, "")}/_rerender`);
|
|
136
|
+
history.replace(pathName);
|
|
136
137
|
} catch (err) {
|
|
137
138
|
const code = err?.response?.data?.code;
|
|
138
139
|
await endSession({ clientId, redirectUri, code, scope, responseType });
|