╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2538 } │ │2539 │ │2540 pub fn terminalWebUrl(allocator: std.mem.Allocator, session: *const Session, path: []const u8) ![]const u8 {│ │2541 + // an absolute url is already complete │ │2542 + if (!std.mem.startsWith(u8, path, "/")) return path; │ │2543 return if (session.web_port) |port| │ │2544 try std.fmt.allocPrint(allocator, "http://localhost:{d}{s}", .{ port, path }) │ │2545 else │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯