We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f475f34 commit 67f979bCopy full SHA for 67f979b
src/browser/navigation/Navigation.zig
@@ -167,14 +167,14 @@ pub fn pushEntry(
167
// we don't always have a current entry...
168
const previous = if (self.entries.items.len > 0) self.currentEntry() else null;
169
try self.entries.append(arena, entry);
170
+ self.index = index;
171
+
172
if (previous) |prev| {
173
if (dispatch) {
174
NavigationCurrentEntryChangeEvent.dispatch(self, prev, .push);
175
}
176
177
- self.index = index;
-
178
return entry;
179
180
0 commit comments