From 1ae714613fdc49fc541f3956dd04abd17e78cd8b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 1 Aug 2026 20:50:03 +0000 Subject: [PATCH] Fix wizard back link: drop municipio, keep from query --- src/components/campaign/leadership/WizardLeadershipStep.tsx | 2 +- src/components/campaign/municipality/WizardSignalTypeStep.tsx | 2 +- src/components/campaign/shared/WizardExpectedVotesStep.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/campaign/leadership/WizardLeadershipStep.tsx b/src/components/campaign/leadership/WizardLeadershipStep.tsx index 41fa1216..b6255cb4 100644 --- a/src/components/campaign/leadership/WizardLeadershipStep.tsx +++ b/src/components/campaign/leadership/WizardLeadershipStep.tsx @@ -129,7 +129,7 @@ export const WizardLeadershipStep = ({ flowTitle={wizardFlowTitleForSlug(actionSlug)} stepTitle={stepTitle} isEntryStep={false} - previousHref={wizardActionHref(actionSlug, municipalitySlug, { returnPath })} + previousHref={wizardActionHref(actionSlug, undefined, { returnPath })} dismissHref={wizardChainEndHref(returnPath)} municipalityLabel={municipalityName} skip={skipConfig} diff --git a/src/components/campaign/municipality/WizardSignalTypeStep.tsx b/src/components/campaign/municipality/WizardSignalTypeStep.tsx index 2ee88227..8daeb62c 100644 --- a/src/components/campaign/municipality/WizardSignalTypeStep.tsx +++ b/src/components/campaign/municipality/WizardSignalTypeStep.tsx @@ -53,7 +53,7 @@ export const WizardSignalTypeStep = ({ flowTitle={wizardFlowTitleForSlug(actionSlug)} isEntryStep={false} stepTitle={WIZARD_SIGNAL_TYPE_STEP_TITLE} - previousHref={wizardActionHref(actionSlug, municipalitySlug, { returnPath })} + previousHref={wizardActionHref(actionSlug, undefined, { returnPath })} dismissHref={wizardChainEndHref(returnPath)} municipalityLabel={municipalityName} contentAlign="end" diff --git a/src/components/campaign/shared/WizardExpectedVotesStep.tsx b/src/components/campaign/shared/WizardExpectedVotesStep.tsx index 34c86a71..2fd94dcb 100644 --- a/src/components/campaign/shared/WizardExpectedVotesStep.tsx +++ b/src/components/campaign/shared/WizardExpectedVotesStep.tsx @@ -138,7 +138,7 @@ export const WizardExpectedVotesStep = ({ flowTitle={wizardFlowTitleForSlug(actionSlug)} stepTitle={wizardNextStepTitle(actionSlug)} isEntryStep={false} - previousHref={wizardActionHref(actionSlug, municipalitySlug, { returnPath })} + previousHref={wizardActionHref(actionSlug, undefined, { returnPath })} dismissHref={wizardChainEndHref(returnPath)} municipalityLabel={municipalityName} skip={skip}