added email url with dynamically adjust query string