Skip to content

Commit

Permalink
Add redirect for thread links (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet authored Jun 23, 2022
1 parent 5e827c9 commit 81ec413
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/status.nim
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ proc createStatusRouter*(cfg: Config) =

get "/i/web/status/@id":
redirect("/i/status/" & @"id")

get "/@name/thread/@id/?":
redirect("/$1/status/$2" % [@"name", @"id"])

0 comments on commit 81ec413

Please sign in to comment.