diff --git a/apps/block_scout_web/assets/js/lib/async_listing_load.js b/apps/block_scout_web/assets/js/lib/async_listing_load.js index 7765626b87..ca19f3b9ea 100644 --- a/apps/block_scout_web/assets/js/lib/async_listing_load.js +++ b/apps/block_scout_web/assets/js/lib/async_listing_load.js @@ -99,21 +99,21 @@ export function asyncReducer (state = asyncInitialState, action) { history.replaceState({}, null, state.nextPagePath) if (state.pagesStack.length === 0) { - state.pagesStack.push(window.location.href.split('?')[0]) + state.pagesStack.push(window.location.href.split('?')[0]) } state.pagesStack.push(state.nextPagePath) return Object.assign({}, state, { beyondPageOne: true }) } - case 'NAVIGATE_TO_NEWER': { + case 'NAVIGATE_TO_NEWER': { history.replaceState({}, null, state.prevPagePath) state.pagesStack.pop() return Object.assign({}, state, { beyondPageOne: true }) } - default: + default: return state } } diff --git a/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex index 3495b3a3b1..f9992c6d86 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex @@ -1,5 +1,5 @@