# Pull Live URL

**URL:** <https://community.hubspot.com/t/pull-live-url/54919>\
**Category:** CMS Development\
**Created:** [April 13, 2022, 1:08pm UTC](https://community.hubspot.com/t/pull-live-url/54919 "2022-04-13T13:08:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRinehart](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@SRinehart](https://community.hubspot.com/u/SRinehart)\
**Post date:** [April 13, 2022, 1:08pm UTC](https://community.hubspot.com/t/pull-live-url/54919/1 "2022-04-13T13:08:49Z")

</div>

Hello!

Is there a tag to use that will pull the current URL of a page?

What I’m looking to do is add a “share this page” button for social media sharing, but the way it’s currently set up is having the user enter the live URL of the page into the module each time. I’m hoping there’s a way that will remove that and it will just automatically pull the URL of the current page and use that.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![SRinehart](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@SRinehart](https://community.hubspot.com/u/SRinehart)\
**Post date:** [April 13, 2022, 1:15pm UTC](https://community.hubspot.com/t/pull-live-url/54919/2 "2022-04-13T13:15:16Z")

</div>

Whoops, nevermind! Found the solution:

[Social Sharing Tag](https://developers.hubspot.com/docs/cms/hubl/tags)

{% social\_sharing “social\_sharing” %}  
{% social\_sharing “my\_social\_sharing” use\_page\_url=True %}

Block Syntax Example:

{% widget\_block social\_sharing “my\_social\_sharing” label=“Social Sharing”, use\_page\_url=True, overrideable=True %}  
{% widget\_attribute “pinterest” is\_json=True %}{“custom\_link\_format”: “”, “pinterest\_media”: “[http://cdn1.hubspot.com/hub/158015/305390\_10100548508246879\_837195\_59275782\_6882128\_n.jpg](http://cdn1.hubspot.com/hub/158015/305390_10100548508246879_837195_59275782_6882128_n.jpg)”, “enabled”: true, “network”: “pinterest”, “img\_src”: “[https://static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png](https://static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png)”}{% end\_widget\_attribute %}  
{% widget\_attribute “twitter” is\_json=True %}{“custom\_link\_format”: “”, “enabled”: true, “network”: “twitter”, “img\_src”: “[https://static.hubspot.com/final/img/common/icons/social/twitter-24x24.png](https://static.hubspot.com/final/img/common/icons/social/twitter-24x24.png)”}{% end\_widget\_attribute %}  
{% widget\_attribute “linkedin” is\_json=True %}{“custom\_link\_format”: “”, “enabled”: true, “network”: “linkedin”, “img\_src”: “[https://static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png](https://static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png)”}{% end\_widget\_attribute %}  
{% widget\_attribute “facebook” is\_json=True %}{“custom\_link\_format”: “”, “enabled”: true, “network”: “facebook”, “img\_src”: “[https://static.hubspot.com/final/img/common/icons/social/facebook-24x24.png](https://static.hubspot.com/final/img/common/icons/social/facebook-24x24.png)”}{% end\_widget\_attribute %}  
{% widget\_attribute “email” is\_json=True %}{“custom\_link\_format”: “”, “enabled”: true, “network”: “email”, “img\_src”: “[https://static.hubspot.com/final/img/common/icons/social/email-24x24.png](https://static.hubspot.com/final/img/common/icons/social/email-24x24.png)”}{% end\_widget\_attribute %}  
{% end\_widget\_block %}
