fix links with query string