From a81d856371dc96b04c977d2e2288fd4c131f5f3f Mon Sep 17 00:00:00 2001 From: Brian Canini <canini.16@osu.edu> Date: Thu, 5 Nov 2020 13:50:27 -0500 Subject: [PATCH] fixing browser back button cache bug --- web/themes/asc_bootstrap/js/scripts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/themes/asc_bootstrap/js/scripts.js b/web/themes/asc_bootstrap/js/scripts.js index e75f246103..6e0f236a8c 100644 --- a/web/themes/asc_bootstrap/js/scripts.js +++ b/web/themes/asc_bootstrap/js/scripts.js @@ -1,3 +1,9 @@ +jQuery(window).bind("pageshow", function(event) { + if (event.originalEvent.persisted) { + window.location.reload() + } +}); + jQuery(document).ready(function(){ //activates lightbox effect on gallery content type -- GitLab