╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │341 try evt.User.toggleAnsi(evt.admin_repo_opts, io, allocator, &repo, &user_id);│ │342 } │ │343 } │ │344 + │ │345 + // return to the settings tab the toggle came from so the change is visible. │ │346 + const location = try std.fmt.allocPrint(allocator, "{s}/settings", .{base}); │ │347 + defer allocator.free(location); │ │348 │ │349 // like logout, this is a bodyless POST, so close the connection rather than │ │350 // letting the keep-alive path try to discard a body that isn't framed. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │352 .status = .see_other, │ │353 .keep_alive = false, │ │354 .extra_headers = &.{ │ │339 - .{ .name = "location", .value = ui.RoutablePage.url(.settings) },│ │355 + .{ .name = "location", .value = location }, │ │356 }, │ │357 }); │ │358 } │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │375 var session = try ui.Session.init(&page_arena, &repo, session_data); │ │376 │ │377 const snapshot: ui.Snapshot = .{ │ │362 - .page = .{ .home = try .init(session.arena, session.haxy_moment orelse unreachable) }, │ │378 + .page = try ui.Page.init(session.arena, session.haxy_moment orelse unreachable, session.data.current_page),│ │379 .session = session.data, │ │380 }; │ │381 var root = try ui.initRoot(allocator, &snapshot.page, &session); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯