Fix getLink in QueryBuilder