mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement is_history record argument for load action
This commit is contained in:
parent
60d4a94ff3
commit
47b2be986b
7 changed files with 49 additions and 34 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue