fully working pageresolver, using resolveHistory