From 5aede0d0965cca7169a13f87fa6bfcde012fdf67 Mon Sep 17 00:00:00 2001 From: Alan Daniels Date: Sun, 2 Nov 2025 13:51:19 +1100 Subject: [PATCH] fix path assumption --- src/context.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.zig b/src/context.zig index 9f75fd1..ae57085 100644 --- a/src/context.zig +++ b/src/context.zig @@ -83,5 +83,5 @@ pub const HtmlEncodeFormatter = struct { pub fn unhandledRequest(ctx: *@This(), arena: Allocator, r: zap.Request) anyerror!void { _ = ctx; - try SendInertiaResponse(.{ .path = r.path.? }, r, arena, "404", .{}); + try SendInertiaResponse(.{ .path = r.path orelse "/" }, r, arena, "404", .{}); }