fix #41251: duplicate recents when using symlinks
Merge pull request #1565 from MarcSabatella/41251-duplicate-recents

fix #41251: duplicate recents when using symlinks