adapted links to documentation to new website layout (#347)

* adapted links to documentation to new website layout

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2018-05-24 22:36:07 +02:00 committed by GitHub
parent 6a4f410fa1
commit 75c1796d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,11 +107,11 @@ public class KarafExtensionService implements ExtensionService {
String version = feature.getVersion();
String link = null;
if (type.equals("binding")) {
link = "http://docs.openhab.org/addons/bindings/" + name + "/readme.html";
link = "https://www.openhab.org/addons/bindings/" + name + "/";
} else if (type.equals("action")) {
link = "http://docs.openhab.org/addons/actions/" + name + "/readme.html";
link = "https://www.openhab.org/addons/actions/" + name + "/";
} else if (type.equals("persistence")) {
link = "http://docs.openhab.org/addons/persistence/" + name + "/readme.html";
link = "https://www.openhab.org/addons/persistence/" + name + "/";
}
boolean installed = featuresService.isInstalled(feature);
return new Extension(extId, type, label, version, link, installed);