Refactor: rename 'p' (indicating 'path') to 'id'
Pass in `url.path` instead of `id` so that `id` can safely include `url.params`.
Add URL parameters to resource ID