diff --git a/dotCMS/src/main/webapp/html/portlet/ext/osgi/bundles.jsp b/dotCMS/src/main/webapp/html/portlet/ext/osgi/bundles.jsp index 51b70db908a7..c1ecf4ca9b2a 100644 --- a/dotCMS/src/main/webapp/html/portlet/ext/osgi/bundles.jsp +++ b/dotCMS/src/main/webapp/html/portlet/ext/osgi/bundles.jsp @@ -7,6 +7,7 @@ <%@ page import="com.dotcms.publisher.endpoint.bean.PublishingEndPoint" %> <%@ page import="com.dotmarketing.util.UtilMethods" %> <%@ page import="org.osgi.framework.Bundle" %> +<%@ page import="com.dotmarketing.util.OSGIUtil" %> <% request.setAttribute("requiredPortletAccess", "dynamic-plugins"); %> @@ -35,6 +36,7 @@ %> var sendingEndpoints = <%=UtilMethods.isSet(sendingEndpoints) && !sendingEndpoints.isEmpty()%>; + var deployPath = '<%=OSGIUtil.getInstance().getFelixDeployPath()%>';
@@ -176,14 +178,14 @@ if (bundleData.state == <%=Bundle.ACTIVE%>) { htmlContent += "<%=LanguageUtil.get(pageContext, "OSGI-Stop")%>"; } - if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(bundleData.separator + "load" + bundleData.separator) != -1) { + if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(deployPath + bundleData.separator) != -1) { htmlContent += " | <%=LanguageUtil.get(pageContext, "OSGI-Undeploy")%>"; } htmlContent += ""; dojo.place(htmlContent, "bundlesTable-body", "after"); - if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(bundleData.separator + "load" + bundleData.separator) != -1) { + if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(deployPath + bundleData.separator) != -1) { if(enterprise) { popupMenus += "
"; if (sendingEndpoints) {