#6375: Fix redirect and add selected structure to session
Merge pull request #6390 from dotCMS/issue-6375-files-link-error

#6375: Fix redirect and add selected structure to session