modify uri path based on if resource link or not

Signed-off-by: Adam Stokes <hackr@cypherbook.com>