# Hoe de koppeling van een knop in het gebruikersmenu te wijzigen

**URL:** <https://meta.discourse.org/t/how-to-change-the-link-associated-with-a-button-in-the-user-menu-panel/181911>\
**Category:** Development\
**Created:** [3 maart 2021 om 20:09 UTC](https://meta.discourse.org/t/how-to-change-the-link-associated-with-a-button-in-the-user-menu-panel/181911 "2021-03-03T20:09:11Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [4 maart 2021 om 10:33 UTC](https://meta.discourse.org/t/how-to-change-the-link-associated-with-a-button-in-the-user-menu-panel/181911/7 "2021-03-04T10:33:22Z")

</div>

What did you do to debug it?

Looking at the javascript console in the browser is always a good start.

If you take a look, there are three obvious issues (ultimately).

The solution is pretty straightforward in this case, you just need to supply the missing constants:

```plaintext
      const UserMenuAction = {
        QUICK_ACCESS: "quickAccess",
      };

      const QuickAccess = {
        BOOKMARKS: "bookmarks",
        MESSAGES: "messages",
        NOTIFICATIONS: "notifications",
        PROFILE: "profile",
      };
      
      const Titles = {
        bookmarks: "user.bookmarks",
        messages: "user.private_messages",
        notifications: "user.notifications",
        profile: "user.preferences",
      };

```

Once you add these (from the original source code), it works 🎉

(But see Faizaan’s optimisation below that negates the need for these, which is even better 🙂 )

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-the-link-associated-with-a-button-in-the-user-menu-panel/181911)._
