getPublicRepositoryURL returns the old public URI (Java API)
I try to get the URI of a work item on the server.
Location location = Location.itemLocation(workItem, this.getPublicRepositoryURL());
URI uri = location.toAbsoluteUri()
But the returning URI is not the present URI but the URI we used before a server rename. Why did my code return the old path? Is there a way to return the actual URI from the Work Item?
Thanks and regards
Martin
Comments
sam detweiler
Dec 20 '13, 6:04 a.m.what server version please?