def location(self) -> Path | URL | None:
        """The current location in the history."""
        try:
            return self._history[self._current]
        except IndexError:
            return None
The current location in the history.
frogmouth/widgets/viewer.py