Make back button return to the previous section instead of page

I’ve noticed the back button at the top of the page behaves very similarly to the built-in one in the browser. That is, if I’m trying to flip between the info, config, and logs of an add-on, the back button will cycle back through those tabs. What I’d like is for this button to go back to the previous section (i.e., if I hit it while viewing an add-on, it will always go back to the list of all installed add-ons)