╭ changed ─────────────╮ │src/ui/Auth/Logout.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │30 var box = wgt.Box(ui.Widget).init(.{ .border_style = null, .rounded_corners = true, .direction = .vert }); │ │31 errdefer box.deinit(allocator); │ │32 // marks this subtree as an HTML form scope for the web overlay │ │33 - box.getFocus().kind = .{ .custom = "form:/logout" }; │ │33 + box.getFocus().kind = .{ .custom = switch (session.data.current_page) { │ │34 + .user, .user_settings, .user_auth => |name| try std.fmt.allocPrint(session.arena.allocator(), "form:/user/{s}/logout", .{name}),│ │35 + else => "form:/logout", │ │36 + } }; │ │37 │ │38 { │ │39 var prompt = wgt.Text(ui.Widget).init("are you sure?"); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯