http-https remover is messing up fb-sharing
-
Excellent plugin.
However the plugin is “messing up” the fb sharing functionality.
The fb-sharing url in the Simplemag theme, – looks like this:
https://www.facebook.com/sharer.php?u=//www.abfotoklubb.no/kare-johansen-ble-arets-fotograf-for-2017/&t=K%C3%A5re%20Johansen%20ble%20%C3%A5rets%20fotograf%20for%202017
after subject to the http-https-remover.
the u=// is invalidby adding line:
$buffer = str_replace(‘//www.facebook.com/sharer.php?u=//’.$_SERVER[‘HTTP_HOST’], ‘//www.facebook.com/sharer.php?u=https://’.$_SERVER[‘HTTP_HOST’], $buffer);
on line three in the “replacement-logic”I managed to get the plugin to work.
- The topic ‘http-https remover is messing up fb-sharing’ is closed to new replies.