@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
- import_history.browserHistory.push(`${new URL(redirectUri).pathname}/rerender`);
160
- import_history.browserHistory.replace(new URL(redirectUri).pathname);
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
- history.push(`${new URL(redirectUri).pathname}/rerender`);
135
- history.replace(new URL(redirectUri).pathname);
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",