# קידוד URL ביציאות פלאגין

**URL:** <https://meta.discourse.org/t/how-to-encode-urls-for-linkedin-share-buttons-in-discourse/299891>\
**Category:** Development\
**Created:** [18 במרץ,‏ 2024,‏ 11:36pm UTC](https://meta.discourse.org/t/how-to-encode-urls-for-linkedin-share-buttons-in-discourse/299891 "2024-03-18T23:36:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bruno\_at\_dq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@bruno\_at\_dq](https://meta.discourse.org/u/bruno_at_dq)\
**Post date:** [26 במרץ,‏ 2024,‏ 5:20pm UTC](https://meta.discourse.org/t/how-to-encode-urls-for-linkedin-share-buttons-in-discourse/299891/2 "2024-03-26T17:20:12Z")

</div>

I handled this by using [Discourse Theme CLI](https://github.com/discourse/discourse_theme) in the following way:

- Created a new theme and made it a component (ran `discourse_theme new` and followed the prompts).

- In `javascripts/discourse/connectors/badge-contents-top` created a JavaScript file with content not far from. . .

- In the same directory as above, created a Handlebars file that roughly contains the inner HTML from the script tag in the question.

---

_[View the full topic](https://meta.discourse.org/t/how-to-encode-urls-for-linkedin-share-buttons-in-discourse/299891)._
