fixes #3520
Merge pull request #3746 from dotCMS/issue-3520-include-htmlpages-and-files-as-link-dependencies

fixes #3520