oldURL

external val oldURL: String(source)

The oldURL read-only property of the HashChangeEvent interface returns the previous URL from which the window was navigated.

MDN Reference