summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/Browser/History.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/History.cpp b/Userland/Applications/Browser/History.cpp
index c738ad53ec..da960f8432 100644
--- a/Userland/Applications/Browser/History.cpp
+++ b/Userland/Applications/Browser/History.cpp
@@ -20,6 +20,8 @@ void History::dump() const
void History::push(const URL& url)
{
+ if (!m_items.is_empty() && m_items[m_current] == url)
+ return;
m_items.shrink(m_current + 1);
m_items.append(url);
m_current++;