How to keep closed the folders in world outliner?

This is the solution for those looking for a temporary but effective work around. Hopefully Unreal comes around to adding a feature that enables us to keep the folders “where they were” before.