[stable14] Fix missing quickaccess favorite folder on add #12441
Backport to NC14 of #10888
When you mark a folder as favorite, it should be added to the quickaccessbar. This is not the case, because the route for checking if the newly marked element is a folder or a directory is missing. This PR readds the missing route.