---
title: 'Social Share Duplicated Web Address'
url: 'https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368'
markdown: 'https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368.md'
date: '2026-06-21'
description: 'Hi there, When sharing the pages on social with the plugin social-share makes a duplicated web address but cannot find the fix. <a'
---

[Plugins](https://getgrav.org/forum/plugins)

#  Social Share Duplicated Web Address 

  Started by Erdinc 9 years ago · 5 replies · 1781 views    

 [9 years ago](https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368#post-21355 "Permalink") 

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="https://www.facebook.com/sharer/sharer.php?u={{ page_url }}" class="popup" target="_blank">`

![07%20PM|417x197](https://cdn.getgrav.org/forum/files/c6/c6aa1a2cf3d24ab8eca4710326c705f7a96287013b8bb13449f4a013785555cc.png)

 [9 years ago](https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368#post-21357 "Permalink") 

I am having the exact same problem and it's brand new for me too. [I've outlined it here](https://getgrav.org/forum/support/social-media-sites-refuse-to-scrape-any-metadata-t5301), 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.

 [9 years ago](https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368#post-21358 "Permalink") 

İ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 

 [9 years ago](https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368#post-21359 "Permalink") 

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.

 [9 years ago](https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368#post-21360 "Permalink") 

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 }}

 [9 years ago](https://getgrav.org/forum/plugins/social-share-duplicated-web-address-t4368#post-21361 "Permalink") 

> **@paul:**
> {{page.url|url\_encode }}

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

[Log in](https://getgrav.org/login?return=%2Fforum%2Fplugins%2Fsocial-share-duplicated-web-address-t4368) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Conflict with updated Form plugin and Add Page By Form](https://getgrav.org/forum/plugins/conflict-with-updated-form-plugin-and-add-page-by-form-t9480)    [Plugins](https://getgrav.org/forum/plugins) · by DrPen, 3 weeks ago |  | 2 | 255 | [2 weeks ago](https://getgrav.org/forum/plugins/conflict-with-updated-form-plugin-and-add-page-by-form-t9480 "by DrPen") |
| [grav-mcp update\_page sends lang in the body instead of the query string, so non-default languages are never updated](https://getgrav.org/forum/plugins/grav-mcp-update-page-sends-lang-in-the-body-instead-of-the-query-string-so-non-default-languages-are-never-updated-t9469)    [Plugins](https://getgrav.org/forum/plugins) · by renedebaaij, 4 weeks ago |  | 1 | 244 | [3 weeks ago](https://getgrav.org/forum/plugins/grav-mcp-update-page-sends-lang-in-the-body-instead-of-the-query-string-so-non-default-languages-are-never-updated-t9469 "by Andy Miller") |
| [Tools / Scheduler some jobs not running.](https://getgrav.org/forum/plugins/tools-scheduler-some-jobs-not-running-t9471)    [Plugins](https://getgrav.org/forum/plugins) · by Thomas, 3 weeks ago |  | 1 | 259 | [3 weeks ago](https://getgrav.org/forum/plugins/tools-scheduler-some-jobs-not-running-t9471 "by Thomas") |
| [How to clone a flex object in twig](https://getgrav.org/forum/plugins/how-to-clone-a-flex-object-in-twig-t9438)    [Plugins](https://getgrav.org/forum/plugins) · by complanar, 1 month ago |  | 6 | 576 | [1 month ago](https://getgrav.org/forum/plugins/how-to-clone-a-flex-object-in-twig-t9438 "by complanar") |
| [Integration of GRAV articles into my principal website](https://getgrav.org/forum/plugins/integration-of-grav-articles-into-my-principal-website-t9440)    [Plugins](https://getgrav.org/forum/plugins) · by BenLaKnet, 1 month ago |  | 1 | 467 | [1 month ago](https://getgrav.org/forum/plugins/integration-of-grav-articles-into-my-principal-website-t9440 "by BenLaKnet") |
