diff --git a/static/src/js/App.jsx b/static/src/js/App.jsx
index 52e5ff434..7ebe4df99 100644
--- a/static/src/js/App.jsx
+++ b/static/src/js/App.jsx
@@ -21,6 +21,7 @@ import PublishPreview from './components/PublishPreview/PublishPreview'
import SearchPage from './pages/SearchPage/SearchPage'
import HomePage from './pages/HomePage/HomePage'
import AuthRequiredContainer from './components/AuthRequiredContainer/AuthRequiredContainer'
+import AuthCallbackContainer from './components/AuthCallbackContainer/AuthCallbackContainer'
import REDIRECTS from './constants/redirectsMap/redirectsMap'
@@ -151,6 +152,11 @@ const App = () => {
)
}
/>
+ }
+ />
Not Found :(} />
} />
} />
diff --git a/static/src/js/components/AuthCallbackContainer/AuthCallbackContainer.jsx b/static/src/js/components/AuthCallbackContainer/AuthCallbackContainer.jsx
index 1c28be24e..d29199850 100644
--- a/static/src/js/components/AuthCallbackContainer/AuthCallbackContainer.jsx
+++ b/static/src/js/components/AuthCallbackContainer/AuthCallbackContainer.jsx
@@ -17,7 +17,7 @@ export const AuthCallbackContainer = () => {
if (path) {
navigate(path)
}
- })
+ }, [])
return
}
diff --git a/static/src/js/components/AuthRequiredContainer/AuthRequiredContainer.jsx b/static/src/js/components/AuthRequiredContainer/AuthRequiredContainer.jsx
index 1a254314d..5c0756ade 100644
--- a/static/src/js/components/AuthRequiredContainer/AuthRequiredContainer.jsx
+++ b/static/src/js/components/AuthRequiredContainer/AuthRequiredContainer.jsx
@@ -17,7 +17,10 @@ export const AuthRequiredContainer = ({
const { apiHost } = getApplicationConfig()
if (token === null || token === '' || token === undefined) {
- window.location.href = `${apiHost}/saml-login?target=${encodeURIComponent(location.pathname)}`
+ console.log('🚀 ~ useEffect ~ location:', location)
+ const nextPath = location.pathname + location.search
+ // debugger
+ window.location.href = `${apiHost}/saml-login?target=${encodeURIComponent(nextPath)}`
}
}, [])
diff --git a/static/src/js/components/CustomArrayFieldTemplate/CustomArrayFieldTemplate.jsx b/static/src/js/components/CustomArrayFieldTemplate/CustomArrayFieldTemplate.jsx
index 7457b1a1e..38c2ed4c1 100644
--- a/static/src/js/components/CustomArrayFieldTemplate/CustomArrayFieldTemplate.jsx
+++ b/static/src/js/components/CustomArrayFieldTemplate/CustomArrayFieldTemplate.jsx
@@ -129,6 +129,7 @@ const CustomArrayFieldTemplate = ({