# \[Solved\] In plugin: opening the composer without changing the route

**URL:** <https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710>\
**Category:** Development\
**Created:** [9 Agosto, 2017 12:02 UTC](https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710 "2017-08-09T12:02:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [9 Agosto, 2017 14:25 UTC](https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710/2 "2017-08-09T14:25:13Z")

</div>

You need to use the `api.modifyClass` plugin api in an initializer

```javascript
withPluginApi("0.8", api => {
  api.modifyClass("controller:composer", {
    action: Composer.CREATE_TOPIC,
   draftKey: 'new_topic'
  });
});

```

---

_[View the full topic](https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710)._
