Edit this page

up.history [up-back]
HTML selector

Changes the link's destination so it points to the previous URL.

If no previous URL is known, the link will not be changed.

Note

Clicking an [up-back] link will not call history.back(). Instead the link will navigate to the previous URL.

Example

This link …

<a href="/default" up-back>
  Go back
</a>

… will be transformed to:

<a href="/default" up-follow up-href="/previous-page" up-scroll="restore" up-follow>
  Go back
</a>