Skip to content

Commit 4c2b95d

Browse files
committed
always prefer navigateFromWebAPI when navigating from a web API
1 parent cea4f05 commit 4c2b95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/html/location.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub const Location = struct {
4242
}
4343

4444
pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
45-
return page.navigate(href, .{ .reason = .script });
45+
return page.navigateFromWebAPI(href, .{ .reason = .script });
4646
}
4747

4848
pub fn get_protocol(self: *Location) []const u8 {

0 commit comments

Comments
 (0)