Added logic related to internal links search