go
Browser history — go back or go forward
Navigate browser history. Distinct from navigate (full URL load).
Syntax
When I go back
When I go forwardQualifiers
| Qualifier | Role |
|---|---|
back | Previous history entry |
forward | Next history entry |
Requirements
| Item | Contract |
|---|---|
| Element / control shape | None — browser history |
| How the label binds | No target |
| Qualifiers that change resolve | back / forward |
| Platform | Web |
| Wrong shape → use instead | New URL → navigate |
See also UI contracts.
Examples
When I go back
Then I should be on "/products"
When I go forwardNotes
- Download tracking state clears on
go back/go forward(same asnavigateandrefresh). - Pair with
should be onto assert the URL after history navigation.