# Script updated

**URL:** <https://daxenterprisetest.danibgz.com/t/script-updated/137>\
**Category:** Feedback Sito\
**Created:** [December 2, 2021, 3:33pm UTC](https://daxenterprisetest.danibgz.com/t/script-updated/137 "2021-12-02T15:33:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dax](https://sjc6.discourse-cdn.com/daxenterprisetest/user_avatar/daxenterprisetest.danibgz.com/dax/32/68_2.png) [@dax](https://daxenterprisetest.danibgz.com/u/dax)\
**Post date:** [December 2, 2021, 3:33pm UTC](https://daxenterprisetest.danibgz.com/t/script-updated/137/1 "2021-12-02T15:33:19Z")

</div>

script updated

```auto
<script type="text/discourse-plugin" version="0.11.2">
  const NavItem = require("discourse/models/nav-item").default;
  const ExternalNavItem = NavItem.extend({
    href : function() {
      return this.get('href');
    }.property('href')
  });

  I18n.translations.en.js.filters.ocasasite = { title: "OCASA", help: "Go to OCASA site" };

  NavItem.reopenClass({
    buildList : function(category, args) {
      var list = this._super(category, args);
      if(!category) {
        list.push(ExternalNavItem.create({href: 'http://www.example.org/', name: 'ocasasite'}));
      }
      return list;
    }
  });
</script>

```
