Fix compatibility with domain mapping and action flush page from admin