사이드바 버튼과 스크립트 연결

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

위 코드를 사이드바의 뷰에 추가하려고 했으나 작동하지 않아, 기존 경로를 참고하여 아래 형식으로 작성했습니다. 그러나 버튼이 표시되고 클릭해도 스크립트가 제대로 작동하지 않는 것 같습니다. 이상하게도, 내가 만든 버튼 대신 ‘Topic’ 버튼을 누르면 스크립트가 정상적으로 작동합니다. 연결하려는 스크립트는 HTML의 head 부분에 배치했습니다.

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