File tree 2 files changed +6
-2
lines changed
static/app/views/onboarding
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,8 @@ function Onboarding(props: Props) {
95
95
96
96
useEffect ( ( ) => {
97
97
if (
98
- props . location . pathname === `/onboarding/${ onboardingSteps [ 2 ] ! . id } /` &&
98
+ normalizeUrl ( props . location . pathname , { forceCustomerDomain : true } ) ===
99
+ `/onboarding/${ onboardingSteps [ 2 ] ! . id } /` &&
99
100
props . location . query ?. platform &&
100
101
onboardingContext . selectedPlatform === undefined
101
102
) {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type {Project} from 'sentry/types/project';
8
8
import { defined } from 'sentry/utils' ;
9
9
import { trackAnalytics } from 'sentry/utils/analytics' ;
10
10
import { handleXhrErrorResponse } from 'sentry/utils/handleXhrErrorResponse' ;
11
+ import normalizeUrl from 'sentry/utils/url/normalizeUrl' ;
11
12
import useApi from 'sentry/utils/useApi' ;
12
13
import useOrganization from 'sentry/utils/useOrganization' ;
13
14
import { onboardingSteps } from 'sentry/views/onboarding/onboarding' ;
@@ -137,7 +138,9 @@ export function useBackActions({
137
138
useBlocker ( ( { historyAction, nextLocation} ) => {
138
139
if ( historyAction === 'POP' ) {
139
140
const prevStepIndex = onboardingSteps . findIndex (
140
- step => nextLocation . pathname === `/onboarding/${ step . id } /`
141
+ step =>
142
+ normalizeUrl ( nextLocation . pathname , { forceCustomerDomain : true } ) ===
143
+ `/onboarding/${ step . id } /`
141
144
) ;
142
145
if ( prevStepIndex < stepIndex ) {
143
146
backStepActions ( {
You can’t perform that action at this time.
0 commit comments