fixes #470 - smarter page api context logic
Merge pull request #472 from groovecoder/page-api-full-context-470

fixes #470 - smarter page api context logic