<BUG>String pagesUri = UriBuilder.fromUri(baseUri).path(PagesResource.class).build(wikiName, spaceName).toString();</BUG><CONTEXT>if (home != null) {space.setHome(home.getPrefixedFullName());space.setXwikiRelativeUrl(home.getURL("view"));space.setXwikiAbsoluteUrl(home.getExternalURL("view"));}<extra_id_0>Link pagesLink = objectFactory.createLink();pagesLink.setHref(pagesUri);pagesLink.setRel(Relations.PAGES);</CONTEXT>
String pagesUri = uri(baseUri, PagesResource.class, wikiName, spaceName);