Title: Sidebar &#8211; Tweet Button adding blog post link as &#039;https&#039;
Last modified: August 21, 2016

---

# Sidebar – Tweet Button adding blog post link as 'https'

 *  [CamJor](https://wordpress.org/support/users/camjor/)
 * (@camjor)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/sidebar-tweet-button-adding-blog-post-link-as-https/)
 * Hi,
 * I’ve just noticed that when a user clicks the Tweet button in the sidebar and
   the pop-up box appears (with the link), it adds an ‘https’ in front of the blog
   post link. It should only be http and this is breaking the link. Is there anyway
   to fix this?
 * Nowhere on our site do we utilize https.
 * Thanks!
 * – Cameron
 * [https://wordpress.org/plugins/wp-socializer/](https://wordpress.org/plugins/wp-socializer/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [CamJor](https://wordpress.org/support/users/camjor/)
 * (@camjor)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/sidebar-tweet-button-adding-blog-post-link-as-https/#post-5055740)
 * any ideas?
 *  Thread Starter [CamJor](https://wordpress.org/support/users/camjor/)
 * (@camjor)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/sidebar-tweet-button-adding-blog-post-link-as-https/#post-5055742)
 * Figured it out (well at least a temporary fix). For anyone that is having the
   same issue:
 * In wp-socializer.php, replace line 1148 with this:
 * `$url = (!empty($_SERVER['HTTPS'])) ? "http://" . htmlspecialchars($_SERVER['
   HTTP_HOST']) . $_SERVER['REQUEST_URI'] :`
 * what it originally was:
 * `$url = (!empty($_SERVER['HTTPS'])) ? "https://" . htmlspecialchars($_SERVER['
   HTTP_HOST']) . $_SERVER['REQUEST_URI'] :`
 *  Thread Starter [CamJor](https://wordpress.org/support/users/camjor/)
 * (@camjor)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/sidebar-tweet-button-adding-blog-post-link-as-https/#post-5055743)
 * resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sidebar – Tweet Button adding blog post link as 'https'’ is closed to
new replies.

 * ![](https://ps.w.org/wp-socializer/assets/icon.svg?rev=1616975)
 * [WP Socializer - Simple & Easy Social Media Share Icons](https://wordpress.org/plugins/wp-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-socializer/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [CamJor](https://wordpress.org/support/users/camjor/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/sidebar-tweet-button-adding-blog-post-link-as-https/#post-5055743)
 * Status: not resolved