Added logic to construct url when fetching trend data
Fixed logic for how to set dereferer link