Match resource links against API root

The API V3 routes tend to forget about their prefix ('api'). Manual tests showed
that the API root routes reliably set their prefix.
Merge pull request #2343 from opf/fix/api_v3_failing_resource_parsing

API V3 failing resource parsing