about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-05-28T18·44-0400
committergrfn <grfn@gws.fyi>2022-05-28T18·47+0000
commit8ae5c7a78178488b332b7c8542051aa584f74fa6 (patch)
treef00e7c1e8c1f074588e47abae681073a7edcd370
parent8b01911e9446d69c572b6c6078a9fc28b75dcf03 (diff)
feat(web/panettone): Redirect to created issue after creation. r/4184
Fixes: b/54
Change-Id: I5ae6c8aa2a4448554a8ba4cb41185ada1ecf8cb0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5784
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--web/panettone/src/panettone.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/panettone/src/panettone.lisp b/web/panettone/src/panettone.lisp
index f9ed979adc79..d87ac5ed4653 100644
--- a/web/panettone/src/panettone.lisp
+++ b/web/panettone/src/panettone.lisp
@@ -485,7 +485,8 @@ given subject an body (in a thread, to avoid blocking)"
                  (id issue))
          :channel (or (uiop:getenvp "ISSUECHANNEL")
                       "#tvl"))
-        (hunchentoot:redirect "/"))))
+        (hunchentoot:redirect
+         (format nil "/issues/~A" (id issue))))))
 
 (defroute show-issue
     ("/issues/:id" :decorators (@auth-optional @handle-issue-not-found @db))