# How to provide custom URL for notification

**URL:** <https://meta.discourse.org/t/how-to-provide-custom-url-for-notification/60273>\
**Category:** Development\
**Created:** [2017年四月1日 06:44 UTC](https://meta.discourse.org/t/how-to-provide-custom-url-for-notification/60273 "2017-04-01T06:44:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jafeth.diazc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jafeth.diazc/32/101197_2.png) [@jafeth.diazc](https://meta.discourse.org/u/jafeth.diazc)\
**Post date:** [2017年四月6日 23:49 UTC](https://meta.discourse.org/t/how-to-provide-custom-url-for-notification/60273/3 "2017-04-06T23:49:16Z")

</div>

Yes ☹

I expected to hear from an experienced developer whether creating custom notifications is something “advisable”. I say this since I haven’t seen plugins doing it (if someone has, please let me know) nor many topics related (others than [this one](https://meta.discourse.org/t/creating-custom-notifications/58950), which I’ve followed to create a custom notification from the backend).

In any case, I was thinking in submitting a PR to add something like the following snippet at the bottom of the url method. That would solve my problem and even be useful for other plugin developers.

```
if (attrs.notification_type === CUSTOM_TYPE) {
  return data.custom_url;
}

```

Even if it’s not worth its merging, I think I could reopen the widget and do the same, but I would need the widget to be exported, so another PR 😅

I hope to get some advice for my issue this time 🙂

---

_[View the full topic](https://meta.discourse.org/t/how-to-provide-custom-url-for-notification/60273)._
