Context:
Using the Ant Design Stepper, I can click on each Step and the Stepper will update and navigate to that step to reflect this. Now I'm trying to add an additional functionality where upon clicking on a Step, the URL also changes. The idea is that the change in URL will route to certain components being displayed on the page. I'm attempting to do this by wrapping the Icon within each Step with Link.
Problem
Now when I click on a Step, the URL does update but the Stepper itself doesn't update and navigate to the Step reflect this. If I click the same Step again then the Stepper will update and navigate to it. I'm hoping to accomplish this without having to click on a Step twice.
Here's the code
<Steps
size="small"
current={current}
onChange={setCurrent}
type="navigation"
>
<Steps.Step
title="People"
icon={
<Link to="/workshop/client-portal/stage/file-management/people">
<Dataset.Icon type="people" />
</Link>
}
/>
<Steps.Step
title="Positions"
icon={
<Link to="/workshop/client-portal/stage/file-management/positions">
<Dataset.Icon type="positions" />
</Link>
}
/>
<Steps.Step
title="Links"
icon={
<Link to="/workshop/client-portal/stage/file-management/Links">
<Dataset.Icon type="links" />
</Link>
}
/>
<Steps.Step
title="Lookups"
icon={
<Link to="/workshop/client-portal/stage/file-management/lookups">
<Dataset.Icon type="lookups" />
</Link>
}
/>
Any thoughts or insights would be greatly appreciated.
Thank you for your time.