Smart selector for hyperlinks based on url