implement is_history record argument for load action

This commit is contained in:
yggverse 2024-11-12 08:23:19 +02:00
parent 60d4a94ff3
commit 47b2be986b
7 changed files with 49 additions and 34 deletions

View file

@ -94,7 +94,7 @@ impl Page {
pub fn home(&self) {
if let Some(url) = self.navigation.home().url() {
// Update with history record
self.tab_action.load().activate(Some(&url));
self.tab_action.load().activate(Some(&url), true);
}
}
@ -748,8 +748,8 @@ impl Page {
.set_status(Status::Redirect) // @TODO is this status really wanted?
.set_title("Redirect");
// Reload page to apply redirection
tab_action.load().activate(None);
// Reload page to apply redirection (without history record request)
tab_action.load().activate(None, false);
}
},
Err(reason) => {