Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add server URL to notification template context #252

Open
1 task
jmbrunskill opened this issue Nov 19, 2023 · 0 comments
Open
1 task

Add server URL to notification template context #252

jmbrunskill opened this issue Nov 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jmbrunskill
Copy link
Collaborator

Is your feature request related to a problem? Please describe

Right now when you receive an email, it's not easy to tell which server it has come from, and would be very useful to be able to provide a link to the notification config in case you want to edit/update/disable it.

In future this could be extended to be an unsubscribe link...

Describe the solution you'd like

A new parameter is added to the tera context based on the server URL.
Probably best if there was a parameter something like notification_config_url that would contain something like

https://test-notify.msupply.org/notification/{NOTIFICATION_CONFIG_ID}

Acceptance Criteria

  • It's possible to create a link to the notification config from within an Scheduled Notification template

Describe alternatives you've considered

Email headers do actually contain some information that can be used to traceback the server.
e.g.

image

Additional context

@jmbrunskill jmbrunskill added the enhancement New feature or request label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant