Safari on Mac - How to go to the last active tab when a new tab is closed?

For example if I’m in the middle of a tab stack submitting something to reddit, open a new tab to look something up to be sure, then close it again, instead of being at that submit page like I expect, it goes to the furthest right tab besides the closed one. Is there a way to make it the last viewed tab on tab close instead?

(Copy pasted from this Reddit post because I have the exact question)