Move the following code out of the pageinit event and into a pageshow event:
$(document).on('pageshow', function (event, ui) {
var page = $(event.target);
if (page.find('#p_content').length !== 0) {
var url = $.mobile.path.parseUrl(document.location.href);
var query_string = url.search;
if (/reminder/i.test(query_string)) {
$('li.static_nav:eq(1)', $.mobile.activePage).trigger('click');
}
}
});