Uploaded image for project: 'PhenoTips'
  1. PT-3194

Reload entire page when user navigates back to the page

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: patient-form
    • Labels:
      None

      Description

      PT-3193 Closed was caused by the browser "back-forward cache" which caches the entire state of the page, including JS state, and restores it on back button press.

      However for some reason part of the page was not restored (the HTML with suggestions found)

      this bug may manifest itself with other JS code, so, as described in http://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked we may want to force reaload the page in those cases

      window.onpageshow = function(event) {
          if (event.persisted) {
              window.location.reload() 
          }
      };
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                asm Andriy Misyura
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: