Skip to content

Commit 70d3655

Browse files
committed
always prefer navigateFromWebAPI when navigating from a web API
1 parent 13c2819 commit 70d3655

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
@@ -30,7 +30,7 @@ pub const Location = struct {
3030
}
3131

3232
pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
33-
return page.navigate(href, .{ .reason = .script });
33+
return page.navigateFromWebAPI(href, .{ .reason = .script });
3434
}
3535

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

0 commit comments

Comments
 (0)