in server/src/jetbrains/buildServer/agentsDiff/BuildAgentSummaryPageExtension.java [42:53]
public final void fillModel(@NotNull final Map<String, Object> model, @NotNull final HttpServletRequest request) {
AgentDescription agent = getAgent(request);
if (agent != null) {
String id;
if (agent instanceof SBuildAgent) {
id = String.valueOf(((SBuildAgent) agent).getId());
} else if (agent instanceof SAgentType) {
id = BuildAgentsDiffViewController.TYPE_PREFIX + ((SAgentType) agent).getAgentTypeId();
} else return;
model.put("diffUrl", BuildAgentsDiffUtils.getDiffPermalink(id, null));
}
}