╭ changed ────────╮ │src/main_wasm.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │128 if (key == .enter) { │ │129 if (root_ptr.getFocus().grandchild_id) |gid| { │ │130 // follow a cross-page link │ │131 - if (ui.crossPageLink(root_ptr.getFocus(), gid, session.data.current_page)) |route| {│ │131 + if (ui.crossPageLink(root_ptr.getFocus(), gid, session.data)) |route| { │ │132 const url = try route.urlAlloc(&page_arena); │ │133 _navigate(url.ptr, @intCast(url.len)); │ │134 return; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │142 fn onMouseClick(focus_id: usize) !void { │ │143 const root_ptr = if (root) |*root_value| root_value else return error.NotStarted; │ │144 // follow a cross-page link │ │145 - if (ui.crossPageLink(root_ptr.getFocus(), focus_id, session.data.current_page)) |route| {│ │145 + if (ui.crossPageLink(root_ptr.getFocus(), focus_id, session.data)) |route| { │ │146 const url = try route.urlAlloc(&page_arena); │ │147 _navigate(url.ptr, @intCast(url.len)); │ │148 return; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯