Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix stay on review page when reloading view
Rūdolfs Ošiņš committed 1 year ago
commit 2c8b00cab027575336c8e8b7fc503fa160184d85
parent 0c1b441ed260ae70fe442cfa4f9fb0ab4025be69
1 file changed +6 -1
modified src/views/repo/router.ts
@@ -290,6 +290,11 @@ export function repoRouteToPath(route: RepoRoute): string {
    let url = [...pathSegments, "patches", route.patch].join("/");
    if (route.status) {
      searchParams.set("status", route.status);
+
    }
+
    if (route.reviewId) {
+
      searchParams.set("review", route.reviewId);
+
    }
+
    if (searchParams.size > 0) {
      url += `?${searchParams}`;
    }
    return url;
@@ -340,7 +345,7 @@ export function repoUrlToRoute(
      const status = (searchParams.get("status") ?? undefined) as
        | PatchStatus
        | undefined;
-
      const reviewId = searchParams.get("reviewId") ?? undefined;
+
      const reviewId = searchParams.get("review") ?? undefined;
      if (id) {
        return {
          resource: "repo.patch",