Fix resource create/update and loadPage('index.php?a..')