Using the link path instead of page path to check for htm extension