╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │727 const row = self.toolRow(); │ │728 const pa = self.session.page_arena.allocator(); │ │729 │ │730 - if (supports_forks and self.session.data.current_page.parent() != .fork) { │ │730 + if (supports_forks and self.session.data.current_page.parent() == .fork) { │ │731 + // the fork page's own tabs show the diff and commits │ │732 + const route = ui.RoutablePage.repoPatchesRoute(self.data.identity, .open, "", entry.id) orelse return error.RouteTooLong; │ │733 + try addToolButton(allocator, row, "view on target repo", "", try std.fmt.allocPrint(pa, "a:{s}", .{try route.toUrl(self.session.page_arena)}));│ │734 + } else if (supports_forks) { │ │735 if (try Data.diffRoute(self.data.identity, entry)) |route| { │ │736 try addToolButton(allocator, row, "view diff", "", try std.fmt.allocPrint(pa, "a:{s}", .{try route.toUrl(self.session.page_arena)})); │ │737 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯