jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
580 stars 126 forks source link

navigate between steps without the Hash. #119

Open ahmadkhalaf1 opened 1 year ago

ahmadkhalaf1 commented 1 year ago

is it possible to navigate between steps without the hash ? for example : i dont want my step to be like this : www.domain.com/#intro , www.domain.com/#step2 instead , i would like to have it like www.domain.com/intro , www.domain.com/step2 , etc ...

how can we do this ?

Thanks

fini commented 1 year ago

if you turn off the feature in react-step-wizard, you can implement it yourself using the api provided by the wizard component, such as goToNamedStep(). I have done this myself, using hash because I needed some additional checks to prevent navigation under certain circumstances.