mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +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:
@@ -495,8 +495,7 @@ Tab& BrowserWindow::new_tab(QString const& url, Web::HTML::ActivateTab activate_
|
||||
|
||||
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::LoadType::HistoryNavigation);
|
||||
tab_ptr->navigate(url);
|
||||
|
||||
return *tab_ptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user