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="/?originalUrl=https%3A%2F%2Funpoly.com%2Fdefault" up-back>
  Go back
</a>

… will be transformed to:

<a href="/?originalUrl=https%3A%2F%2Funpoly.com%2Fdefault" up-follow up-href="/?originalUrl=https%3A%2F%2Funpoly.com%2Fprevious-page" up-scroll="restore" up-follow>
  Go back
</a>