add filter in getting the correct html file by comparing to document base directory

Issue: GCP-10096

Reviewer: Glenn