mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 12:44:59 +00:00
Ladybird: Add initial page to history
This fixes a bug where the reload button does not work on the page that was initially opened
This commit is contained in:
parent
b6f9f4c28c
commit
980e7164fe
1 changed files with 1 additions and 2 deletions
|
@ -495,8 +495,7 @@ Tab& BrowserWindow::new_tab(QString const& url, Web::HTML::ActivateTab activate_
|
||||||
|
|
||||||
tab_ptr->focus_location_editor();
|
tab_ptr->focus_location_editor();
|
||||||
|
|
||||||
// We make it HistoryNavigation so that the initial page doesn't get added to the history.
|
tab_ptr->navigate(url);
|
||||||
tab_ptr->navigate(url, Tab::LoadType::HistoryNavigation);
|
|
||||||
|
|
||||||
return *tab_ptr;
|
return *tab_ptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue