Hello,
On my page 16 (A modal dialog), there is a dynamic action ( of a button) that calls Javascript to redirect to another modal dialog page 14 (seems I can't close the current dialog window first and then open another one, so use Redirect()), when I call apex.navigation.redirect(urlLink), it complains as shown in the snapshot. The urlLink works fine if I change the pages to Normal and call window.location=urlLink (but I do need a modal dialog for user). Could anyone let me know how to call this function correctly? Thanks very much!

The function is:
function GotoP14() {
var StudySiteID= $("#P16\_STUDY\_SITE\_ID").val();
var StudyID= $("#P16\_STUDY\_ID").val();
var FacilityID= $("#P16\_CHOOSE\_FACILITY").val();
var FacilityName= $("#P16\_FACILITY\_NAME").val();
var urlLink='f?p=&APP\_ID.:14:&APP\_SESSION.::NO::P14\_STUDY\_SITE\_ID,P14\_STUDY\_ID,P14\_MASTER\_FACILITY\_ID,P14\_FACILITY\_NAME:' + StudySiteID + ',' + StudyID+ ',' + FacilityID+ ',' + FacilityName;
apex.navigation.redirect(urlLink);
// window.location = urlLink;
}