🐛 Open the review from the review-id link of review emails

The review-request email links to the workspace with review-id since
the rename, while the router read only pr-id, so the link opened the
branch without its review. The router now reads either.

AI-assisted-by: claude-opus-5-5
This commit is contained in:
Álvaro Tejero Cantero 2026-11-23 20:56:40 +01:00
parent 26d3c45266
commit ca6cc3c2b2
No known key found for this signature in database

View File

@ -196,7 +196,9 @@
team-id (some-> params :team-id uuid/parse*)
file-id (some-> params :file-id uuid/parse*)
page-id (some-> params :page-id uuid/parse*)
pr-id (some-> params :pr-id uuid/parse*)
;; review-request emails link with review-id; the app's own
;; navigation still writes pr-id
pr-id (some-> (or (:review-id params) (:pr-id params)) uuid/parse*)
task-id (some-> params :task-id uuid/parse*)
layout (some-> params :layout keyword)]
[:> team-container* {:team-id team-id}
@ -212,7 +214,7 @@
(let [params (get params :query)
index (some-> (rt/get-query-param params :index) parse-long)
share-id (some-> (:share-id params) uuid/parse*)
pr-id (some-> (:pr-id params) uuid/parse*)
pr-id (some-> (or (:review-id params) (:pr-id params)) uuid/parse*)
section (or (some-> (:section params) keyword)
:interactions)