KG|ST: updated pagename to have contentType if that exists