mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +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
Notes:
sideshowbarker
2024-07-17 16:23:06 +09:00
Author: https://github.com/0x6D70
Commit: 980e7164fe
Pull-request: https://github.com/SerenityOS/serenity/pull/19846
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/trflynn89
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();
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue