# Link sidebar buttons and scripts

**URL:** <https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541>\
**Category:** Development\
**Tags:** sidebar\
**Created:** [June 25, 2024, 11:43am UTC](https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541 "2024-06-25T11:43:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Truest](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@Truest](https://meta.discourse.org/u/Truest)\
**Post date:** [June 30, 2024, 7:56am UTC](https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541/5 "2024-06-30T07:56:36Z")

</div>

```plaintext
<script type="text/discourse-plugin" version="0.8">
    api.addCommunitySectionLink({
      name: "install",
      route: "/install",
      title: "install",
      text: "install",
      icon: "download"
    });
</script>

```

I tried to add the above code to the sidebar’s view, but it did not work, so I wrote it in the format below, referring to the existing path. However, when the button appears and I press it, the script does not seem to work properly. Oddly enough, the script works when I press the ‘Topic’ button rather than the button I created. The script to be connected was also placed in the head of the HTML.

```plaintext
<script type="text/discourse-plugin" version="0.8">
    api.addCommunitySectionLink({
      name: "install",
      route: "discovery.latest",
      title: "install",
      text: "install",
      icon: "download"
    });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/link-sidebar-buttons-and-scripts/313541)._
