# 能否提供在移动端视图发布回复的链接？

**URL:** <https://meta.discourse.org/t/could-we-get-the-link-to-post-replies-in-mobile-view/115791>\
**Category:** UX\
**Created:** [2019年四月24日 06:02 UTC](https://meta.discourse.org/t/could-we-get-the-link-to-post-replies-in-mobile-view/115791 "2019-04-24T06:02:58Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)\
**Post date:** [2019年六月12日 11:13 UTC](https://meta.discourse.org/t/could-we-get-the-link-to-post-replies-in-mobile-view/115791/12 "2019-06-12T11:13:16Z")

</div>

Started trying to work on a plugin for this.

I’m looking to modify the “toggleReplyAbove” action. It looks to be in the post widget, but if I use the following code to try and replace the action I don’t see any effect - nothing is printed to console and it behaves as normal:

```plaintext
api.attachWidgetAction('post', 'toggleReplyAbove', () => {
    console.log('toggle triggered');
  });

```

In the post widget code, it looks like the toggleReplyAbove function is defined inside the created widget `post-article` , but that doesn’t seem to be modifiable with attachWidgetAction since the following code trying to modify that widget results in the error `Uncaught TypeError: Cannot read property 'class' of undefined` :

```plaintext
api.attachWidgetAction('post-article', 'toggleReplyAbove', () => {
    console.log('toggle triggered');
  });

```

I’m able to overwrite the “like” action on post-menu fine as described here [Updating Discourse Plugins, taking the first step - #9 by eviltrout](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241/9). Where should I be attaching the widget action to overwrite the toggleReplyAbove action?

---

_[View the full topic](https://meta.discourse.org/t/could-we-get-the-link-to-post-replies-in-mobile-view/115791)._
