The JQuery mobile popup widget compares the current url with the source and refreshes the page if they do not match. Therefore, if you want to prevent this behavior, you need to avoid a pop-up widget that affects the story. Just add data-history = "false" to your widget. However, I am not sure about the dialog widgets because it is completely different from the popup. Hope this helps.
source share