@openmfp/portal-ui-lib 0.197.1 → 0.197.4

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.
@@ -1914,6 +1914,9 @@ function potentialVPNResourceLoadable(url) {
1914
1914
  }
1915
1915
 
1916
1916
  class PreserveQueryParamsUrlHandlingStrategy {
1917
+ constructor() {
1918
+ this.authErrorParams = ['error', 'errorDescription'];
1919
+ }
1917
1920
  shouldProcessUrl(url) {
1918
1921
  return true;
1919
1922
  }
@@ -1923,7 +1926,7 @@ class PreserveQueryParamsUrlHandlingStrategy {
1923
1926
  merge(newUrlPart, wholeUrl) {
1924
1927
  const routerHasNoQueryParams = !newUrlPart.queryParams ||
1925
1928
  Object.keys(newUrlPart.queryParams).length === 0;
1926
- const liveParams = Object.fromEntries(new URLSearchParams(location.search));
1929
+ const liveParams = Object.fromEntries([...new URLSearchParams(location.search)].filter(([key]) => !this.authErrorParams.includes(key)));
1927
1930
  if (routerHasNoQueryParams && Object.keys(liveParams).length > 0) {
1928
1931
  newUrlPart.queryParams = liveParams;
1929
1932
  }