diff --git a/c3post/main.py b/c3post/main.py index c4fb9bdaa4fce44197fc23355248d1574526a975..df0fd616d14e41ab69f7e3edf3108b17377dfbc7 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 + )