Share Link URI Issue – SOLVED
-
I found that, with our blog hosted on Pantheon, the URIs shared via the buttons created by this plugin were not based on the site’s domain, but rather on the server… In other words, this
https://appserver-25911a4c-nginx-b5f01bf3e6a848ca958b28516393a7bc/2021/01/25/gorillasrecovering/
instead of this
https://zoonooz.sandiegozoo.org/2021/01/25/gorillasrecovering/
I was able, with the guidance of Jesse Ryles on the Pantheon Slack, to get the URIs to show correctly by changing the last line of the simple-share-buttons-adder/php/class-buttons.php file like this:
// Return share buttons. // return $html_share_buttons; return esc_url(get_permalink($post->ID));
I don’t know if this is the best solution, but it works for me for now.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Share Link URI Issue – SOLVED’ is closed to new replies.