1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 10:54:57 +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:
0x6D70 2023-07-06 17:34:34 +02:00 committed by Tim Flynn
parent b6f9f4c28c
commit 980e7164fe

View file

@ -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;
}