From 980e7164fe4aeb7485a5c73465fe3257b3b96a2d Mon Sep 17 00:00:00 2001 From: 0x6D70 Date: Thu, 6 Jul 2023 17:34:34 +0200 Subject: [PATCH] Ladybird: Add initial page to history This fixes a bug where the reload button does not work on the page that was initially opened --- Ladybird/Qt/BrowserWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Ladybird/Qt/BrowserWindow.cpp b/Ladybird/Qt/BrowserWindow.cpp index 80297c80f0..2422f8186c 100644 --- a/Ladybird/Qt/BrowserWindow.cpp +++ b/Ladybird/Qt/BrowserWindow.cpp @@ -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; }