goBack - history.back()

Script for the button to return to the scene of origin ( not the previous one)
thanks

Does this thread answer your question?

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