Updated external link path to encodeURI