fixes #470 - smarter page api context logic

I'm not totally happy with this, but it's smarter about the `page` portion of the identifier; I can't find a good way to dynamically match the leading `api` portion without hard-coding it. :/