Skip to content

Commit

Permalink
Add redirect for thread links (zedeus#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet authored and joshieDo committed Aug 20, 2022
1 parent b577505 commit 31055a2
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 31055a2

Please sign in to comment.