We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 564d8a3 commit 2ca7f56Copy full SHA for 2ca7f56
datahub-web-react/src/App.tsx
@@ -48,7 +48,8 @@ const errorLink = onError((error) => {
48
if (serverError.statusCode === 401) {
49
isLoggedInVar(false);
50
Cookies.remove(GlobalCfg.CLIENT_AUTH_COOKIE);
51
- window.location.replace(PageRoutes.AUTHENTICATE);
+ const currentPath = window.location.pathname + window.location.search;
52
+ window.location.replace(`${PageRoutes.AUTHENTICATE}?redirect_uri=${encodeURIComponent(currentPath)}`);
53
}
54
55
if (graphQLErrors && graphQLErrors.length) {
0 commit comments