Microsoft are introducing a history menu in the Teams desktop app, that displays your recently visited locations.
By hovering over the backward and forward navigation buttons, you will be able to see recently visited locations in Teams. The history menu makes it easier to navigate to previous locations, such as nested tabs and documents.

Image is not our own. Image courtesy of Microsoft, taken from Message Center email: Major Change Update Notification.
This will begin rolling out early February and be completed by the end of the month.