This example demonstrates how to make the browser's Forward and Back buttons work with a wizard built with LWC (with no full page refresh).
- Create a scratch org:
sfdx force:org:create -s -f config/project-scratch-def.json -a lwc-history-example
- Push the app to your scratch org:
sfdx force:source:push
- Assign the LWC History Example permission set to the default user:
sfdx force:user:permset:assign -n LWC_History_Example
- Open the scratch org:
sfdx force:org:open
- In App Launcher, select the LWC History Example app.