I have a simple library with folders. When I navigate into the library and browse deep, I can click the parent folder name in the header to navigate back up.
If I have a direct link to a folder, i.e. https://tenant.sharepoint.com/sites/site/documents/folder1/folder2, and I click the parent folder, I get a 404 error. I click back, click it again and it works.