Remove quote marks and fix generated query link.