Hi,
I'm using Connect Express together with Confluence. I want to redirect the user to another page in certain situations when a new page is created in Confluence. I implemented the "page_created" webhook for this:
"modules": {
"webhooks": [
{
"event": "page_created",
"url": "/page-created"
}
],
// handler
app.post('/page-created', addon.authenticate(), function(req, res) {
// redirect or emit message to user
// req.redirect does not work here...
// or how can I emit messages to users from here?
}
Is there any chance to redirect the user in the "/page-created" webhook handler to another page? As I actually expected, req.redirect(url) does not work because I guess it is in the nature of how Webhooks work. But nevertheless, could you think of a possible solution for this scenario?
In case this is not possible, is there at least a way to emit messages to users in a webhook handler? I want to inform users that they can go to a specific URL in this case.
Thanks,
Michael