dashboard: Ensure fqdn of applink has the schema removed

This commit is contained in:
Johannes Zellner
2024-02-23 17:57:09 +01:00
parent 909fe5dc15
commit 1026728ab7

View File

@@ -2216,7 +2216,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
// amend properties to mimick full app
data.applinks.forEach(function (applink) {
applink.type = APP_TYPES.LINK;
applink.fqdn = applink.upstreamUri; // this fqdn may contain the protocol!
applink.fqdn = new URL(applink.upstreamUri).hostname;
applink.manifest = { addons: {}};
applink.installationState = ISTATES.INSTALLED;
applink.runState = RSTATES.RUNNING;