Skip to content

Commit

Permalink
invalid redirect to login page
Browse files Browse the repository at this point in the history
  • Loading branch information
DogukanUrker committed Dec 28, 2023
1 parent da33fbd commit 9e696d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/editPost.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ def editPost(postID):
case False:
message("1", "USER NOT LOGGED IN")
flash("you need login for edit a post", "error")
return redirect("/login")
return redirect(f"/login/redirect=&editpost&{postID}")

0 comments on commit 9e696d1

Please sign in to comment.