From 256878f60c2fe3506ac69cbc697f45d46b9454f3 Mon Sep 17 00:00:00 2001 From: hanfi <ccc@spahan.ch> Date: Fri, 5 May 2023 10:36:21 +0200 Subject: [PATCH] fix path --- c3post/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/c3post/main.py b/c3post/main.py index c4fb9bd..df0fd61 100644 --- a/c3post/main.py +++ b/c3post/main.py @@ -210,4 +210,6 @@ def store_item( ) db.add(item) db.commit() - return RedirectResponse(url="/", status_code=HTTP_303_SEE_OTHER) + return RedirectResponse( + url=app.url_path_for("main"), status_code=HTTP_303_SEE_OTHER + ) -- GitLab