Seravo / wp-https-domain-alias

This plugin allows your site to fall back to a secure HTTPS domain when a certificate is not available.
GNU General Public License v3.0
18 stars 10 forks source link

This changes query params as well #24

Closed onnimonni closed 9 years ago

onnimonni commented 9 years ago

I installed Jetpack social sharing to one of our sites. If this plugin was in use the twitter sharing changed the query params of url from mysite.com always into mysite.seravo.fi.

I tracked it down to wp-redirect filter which returned correct host name but changed query_params.

See the query params in below:

$ curl -I -H 'Pragma: no-cache' "http://mysite.com/kohteet/example-t2/?share=twitter&nb=1"
HTTP/1.1 302 Found
Server: nginx
Date: Thu, 18 Jun 2015 17:25:04 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Set-Cookie: PHPSESSID=n5uvbif5njam7il6bqgjt2opm1; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://mysite.com/xmlrpc.php
Location: https://twitter.com/intent/tweet?via=Test&text=Testing&url=http%3A%2F%mysite.seravo.fi%2Fkohteet%example-t2%2F