aboutsummaryrefslogtreecommitdiff
path: root/src/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/history.c b/src/history.c
index f9d35ba7..ad08611b 100644
--- a/src/history.c
+++ b/src/history.c
@@ -38,7 +38,8 @@ int a_History_add_url(DilloUrl *url)
int i, idx;
for (i = 0; i < history_size; ++i)
- if (a_Url_cmp(history[i].url, url) == 0)
+ if (!a_Url_cmp(history[i].url, url) &&
+ !strcmp(URL_FRAGMENT(history[i].url), URL_FRAGMENT(url)))
return i;
idx = history_size;