Inject uri info for http protocol url computation

This commit is contained in:
René Pfeuffer
2018-09-10 14:48:22 +02:00
parent ce518ad784
commit a490a20ac9
9 changed files with 25 additions and 19 deletions

View File

@@ -67,6 +67,6 @@ public abstract class RepositoryToRepositoryDtoMapper extends BaseMapper<Reposit
}
private Link createProtocolLink(ScmProtocol protocol, Repository repository) {
return Link.linkBuilder("protocol", protocol.getUrl(uriInfoStore.get().getBaseUri().resolve("../.."))).withName(protocol.getType()).build();
return Link.linkBuilder("protocol", protocol.getUrl()).withName(protocol.getType()).build();
}
}