diff --git a/Userland/Applications/Browser/History.cpp b/Userland/Applications/Browser/History.cpp index 964944a364..f93d07fcc6 100644 --- a/Userland/Applications/Browser/History.cpp +++ b/Userland/Applications/Browser/History.cpp @@ -35,6 +35,7 @@ void History::replace_current(const URL& url, String const& title) if (m_current == -1) return; + m_items.remove(m_current); m_current--; push(url, title); }