diff --git a/frontend/src/component/demo/DemoSteps/DemoSteps.tsx b/frontend/src/component/demo/DemoSteps/DemoSteps.tsx index bca119d2e5..86da1f0513 100644 --- a/frontend/src/component/demo/DemoSteps/DemoSteps.tsx +++ b/frontend/src/component/demo/DemoSteps/DemoSteps.tsx @@ -193,7 +193,10 @@ export const DemoSteps = ({ const currentStep = currentTopic.steps[currentStepIndex]; if (!currentStep) return; - if (currentStep.href && location.pathname !== currentStep.href) { + if ( + currentStep.href && + location.pathname !== currentStep.href.split('?')[0] + ) { navigate(currentStep.href); } waitForLoad(currentStep); diff --git a/frontend/src/component/demo/demo-topics.tsx b/frontend/src/component/demo/demo-topics.tsx index bce8d4ef40..78ac31db29 100644 --- a/frontend/src/component/demo/demo-topics.tsx +++ b/frontend/src/component/demo/demo-topics.tsx @@ -34,7 +34,7 @@ export const TOPICS: ITutorialTopic[] = [ title: 'Enable/disable a feature toggle', steps: [ { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: 'body', placement: 'center', content: ( @@ -63,7 +63,7 @@ export const TOPICS: ITutorialTopic[] = [ nextButton: true, }, { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: `div[data-testid="TOGGLE-demoApp.step1-${ENVIRONMENT}"]`, content: ( <> @@ -87,7 +87,7 @@ export const TOPICS: ITutorialTopic[] = [ title: 'Enable for a specific user', steps: [ { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: 'body', placement: 'center', content: ( @@ -111,7 +111,7 @@ export const TOPICS: ITutorialTopic[] = [ nextButton: true, }, { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: `a[href="${basePath}/projects/${PROJECT}/features/demoApp.step2"]`, content: ( @@ -263,7 +263,7 @@ export const TOPICS: ITutorialTopic[] = [ setup: gradualRollout, steps: [ { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: 'body', placement: 'center', content: ( @@ -293,7 +293,7 @@ export const TOPICS: ITutorialTopic[] = [ nextButton: true, }, { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: `a[href="${basePath}/projects/${PROJECT}/features/demoApp.step3"]`, content: ( @@ -369,7 +369,7 @@ export const TOPICS: ITutorialTopic[] = [ setup: variants, steps: [ { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: 'body', placement: 'center', content: ( @@ -394,7 +394,7 @@ export const TOPICS: ITutorialTopic[] = [ nextButton: true, }, { - href: `/projects/${PROJECT}`, + href: `/projects/${PROJECT}?sort=name`, target: `a[href="${basePath}/projects/${PROJECT}/features/demoApp.step4"]`, content: (