Browse Source

fix(domains) Fix redirects with context picker (#42963)

When the context picker is used to choose a project we need to normalize
the generated URL.
Mark Story 2 years ago
parent
commit
2c898183ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/actionCreators/navigation.tsx

+ 1 - 1
static/app/actionCreators/navigation.tsx

@@ -32,7 +32,7 @@ export function navigateTo(
           configUrl={configUrl}
           onFinish={path => {
             modalProps.closeModal();
-            return window.setTimeout(() => router.push(path), 0);
+            return window.setTimeout(() => router.push(normalizeUrl(path)), 0);
           }}
         />
       ),