bug fix: href variable was always set to sample query string