API links fixes

Fixes https://github.com/mysociety/popit/issues/330
Fixes https://github.com/mysociety/popit/issues/332