Twitter counter does not work for qa and prod but works on dev


#1

the same code is tested in 3 environments
xploredev.ieee.org(works)
xploreqa.ieee.org( Not working)
ieeexplore.ieee.org(not working)

I’m using the following code

The followig is what I have observer
After I submited the tweet the request goes to

https://twitter.com/intent/tweet/update
I compared the HAR of this request and I found out that the refere attibute is wrong when it is failing.

in dev (working environment) file it shows the following which i s correct
"name": “referer”,
“value”: “https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fxploredev.ieee.org%2Fxpl%2FarticleDetails.jsp%3Ftp%3D%26arnumber%3D4731412%26queryText%3Djava&related=ieeexplore%2CieeeORG%2Cieeesa%2Cieeespectrum%2Ccomputersociety&text=Class%20Loader%20Firmware%20on%20Java%20SoC&tw_p=tweetbutton&url=http%3A%2F%2Fxplqws01.ieee.org%2Fxpl%2FarticleDetails.jsp%3Farnumber%3D4731412&via=ieeexplore

But in qa (Not working environment) it shows
"name": “referer”,
“value”: "https://twitter.com/intent/tweet/update"
This is not the referer this is the current url

I think that is the issue.

Let me know if you need more information


#2

#3