Fix for #12. Was passing the parent's path information to the self link generator rather than the child's.

This commit is contained in:
Jon Brisbin
2012-05-22 08:56:27 -05:00
parent 3646d0fc67
commit 987e386aba

View File

@@ -900,7 +900,7 @@ public class RepositoryRestController
linkedEntity,
linkedRepoMeta.entityMetadata(),
baseUri);
URI selfUri = addSelfLink(baseUri, entityDto, repository, id);
URI selfUri = addSelfLink(baseUri, entityDto, linkedRepoMeta.name(), linkedId);
HttpHeaders headers = new HttpHeaders();
headers.add("Content-Location", selfUri.toString());