Updating the URL on page changes so that the browser back buttons control the Embeddable
Turn on the Sync Pages With The URL setting
Test for edge-cases and enjoy.
mywebsite.com/get-started
then that will immediately become
mywebsite.com/get-started#intro_page
, and when the user clicks next inside the embeddables their
URL bar will then show mywebsite.com/get-started#your_name_page
, etc etc.
Why is this helpful? Well, it means that if the user presses the browser’s Back button,
it will just return to mywebsite.com/get-started#intro_page
- a different anchor link but still on the same webpage.
Embeddables then listens for changes to the URL and updates the Embeddable page accordingly,
so the user will feel no difference between that and using the Back button inside the Embeddable itself.
The browser’s Forward button works in the same way, meaning that users should have a
smooth experience pretty much whatever they choose to do.