--- shell/ev-history.c.old	2017-07-28 01:22:22.023931757 +0200
+++ shell/ev-history.c	2017-07-28 01:23:37.911704568 +0200
@@ -442,12 +442,18 @@
 page_changed_cb (EvDocumentModel *model,
                  gint             old_page,
                  gint             new_page,
                  EvHistory       *history)
 {
-        if (ABS (new_page - old_page) > 1)
+        if (ABS (new_page - old_page) > 1) {
+                gint current_page = ev_history_get_current_page (history);
+                
+                if (current_page != old_page)
+                        ev_history_add_link_for_page (history, old_page);
+                
                 ev_history_add_link_for_page (history, new_page);
+        }
 }
 
 static void
 document_changed_cb (EvDocumentModel *model,
                      GParamSpec      *pspec,
