Entering the document via a link breaks all folds under the heading

Steps to reproduce

Every time I link to a title in a document, all the folds open
Having the nodes that I deliberately folded open and break, it’s very upsetting
If I fold a node, unless I’m actually going to expand it, the node fold should be properly recorded and kept

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Actual result

Environment