We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f56a483 commit c1f1675Copy full SHA for c1f1675
plugins/login-resources/src/utils.ts
@@ -1012,13 +1012,21 @@ export async function doLoginNavigate (
1012
}
1013
1014
1015
+ const currentLoc = getCurrentLocation()
1016
+
1017
const loc = getCurrentLocation()
1018
loc.path[1] = result.token != null ? 'selectWorkspace' : 'confirmationSend'
1019
loc.path.length = 2
1020
if (navigateUrl !== undefined) {
1021
loc.query = { ...loc.query, navigateUrl }
1022
1023
1024
+ // If we're already on the target page, reload to refresh state
1025
+ if (loc.path.length === currentLoc.path.length && isSameSegments(currentLoc, loc, loc.path.length)) {
1026
+ window.location.reload()
1027
+ return
1028
+ }
1029
1030
navigate(loc)
1031
1032
0 commit comments