From 1cc054701771ff6f63848e0373792b496b033c63 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 18 Jul 2015 22:23:05 -0700 Subject: [PATCH] Current page must be queried after the mode is set correctly. --- src/General/Index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 62daaeac9..b9c8a70f3 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -227,13 +227,13 @@ Index = popstate: (e) -> if e?.state {search, mode} = e.state - page = Index.getCurrentPage() state = {} if Index.search isnt search state.search = Index.search = search if Conf['Index Mode'] isnt mode state.mode = mode Index.saveMode mode + page = Index.getCurrentPage() if Index.currentPage isnt page state.page = Index.currentPage = page if state.search? or state.mode? or state.page?