Social Share Duplicated Web Address

Hi there,

When sharing the pages on social with the plugin social-share makes a duplicated web address but cannot find the fix.

<a href="{{ page_url }}" class="popup" target="_blank">


I am having the exact same problem and it’s brand new for me too. I’ve outlined it here, so you may want to keep track of that topic as well. Though of course if I discover a solution, I’ll share it with you right away.

İt was working well before I don’t have any errors… I think making some SEO changes gonna make this error. thanks @pdobrev I’ll be watching your solution… If I find anything before you I’ll forward it too…

1 Like

I looked at your site’s source code and compared the landing page with a menu item.

The home page shares well, except for the og:image element, because there the url doesn’t exist, but that’s not the main point.

I checked the Stroganof menu item and tried sharing it with the same result as you. When I checked the source code, there was no description, title, url or image metadata… if you are creating the data in the backend, it’s not showing up in the final html document.

That’s a bit different to my problem. With my site, the metadata I attach to each post actually show up, with the exception of the description and og:description… Despite having manually set those to a custom strings, the cms just throws away my custom strings and autogenerates new ones from the page content. Weird… really weird.

Where does this {{ page_url }} comes from?
Grav variable is usually {{ page.url }}. Maybe you could try switching to this variable?

Edit: When building an url, you might also want to use sometime the url_encode filter: {{page.url|url_encode }}

YESSS :slight_smile: that worked :slight_smile: in social buttons plugin all the files in partial has {{ page_url }} … I switched all to this {{ page.url }} thanks @paul