How to provide custom URL for notification

Yes :frowning:

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, 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 :sweat_smile:

I hope to get some advice for my issue this time :slight_smile:

1 Like