elm / browser

Create Elm programs that run in browsers!
https://package.elm-lang.org/packages/elm/browser/latest/
BSD 3-Clause "New" or "Revised" License
313 stars 64 forks source link

Ability to distinguish source of url change in onUrlChange #119

Open jessta opened 4 years ago

jessta commented 4 years ago

The ability to distinguish whether a call to onUrlChange resulted from a link (and which link) or the back/foward button

An example of a usecase from a conversation in the Elm Slack:

What do you do differently for a Back/Foward navigation?

"We have some tabs and one tab/page loads a list of things which the user can click on to open a modal detail.

All three are navigating to the same path with subtly different behavior."