goBack - history.back()

Does this thread answer your question?

“Create a ‘Back’ button to transition to the last-visited scene”