From b40e7ece91d2dcb7c4420e49bdd0e118e6ef5de5 Mon Sep 17 00:00:00 2001 From: Muki Kiboigo Date: Tue, 21 Oct 2025 19:25:24 -0700 Subject: [PATCH] no nullable url on Navigation pushEntry --- src/browser/navigation/Navigation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/navigation/Navigation.zig b/src/browser/navigation/Navigation.zig index 71fbe9d8..5610dd41 100644 --- a/src/browser/navigation/Navigation.zig +++ b/src/browser/navigation/Navigation.zig @@ -127,10 +127,10 @@ pub fn processNavigation(self: *Navigation, page: *Page) !void { /// Pushes an entry into the Navigation stack WITHOUT actually navigating to it. /// For that, use `navigate`. -pub fn pushEntry(self: *Navigation, _url: ?[]const u8, state: ?[]const u8, page: *Page, dispatch: bool) !*NavigationHistoryEntry { +pub fn pushEntry(self: *Navigation, _url: []const u8, state: ?[]const u8, page: *Page, dispatch: bool) !*NavigationHistoryEntry { const arena = page.session.arena; - const url = if (_url) |u| try arena.dupe(u8, u) else null; + const url = try arena.dupe(u8, _url); // truncates our history here. if (self.entries.items.len > self.index + 1) {