Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit 834d75a

Browse files
committed
GHOST-625: Fixup 404 on webhook view
redirect to list of invocations
1 parent 82016bb commit 834d75a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,9 @@ def web_webhook_list_all_invocations():
10501050

10511051
return render_template('webhook_invocation_list.html', invocations=invocations, page=int(page), all=True)
10521052

1053+
@app.route('/web/webhooks/<webhook_id>/', methods=['GET'])
1054+
def web_webhook_redirect_list_invocations(**kwargs):
1055+
return redirect(url_for('web_webhook_list_invocations', **kwargs), code=301)
10531056

10541057
@app.route('/web/webhooks/<webhook_id>/invocations/', methods=['GET'])
10551058
def web_webhook_list_invocations(webhook_id):

0 commit comments

Comments
 (0)