public static String decoratorContextPath(final String contextPath) {
        return StringUtils.contains(contextPath, AdminConstants.URI_SUFFIX) ? StringUtils.substringBefore(contextPath, AdminConstants.URI_SUFFIX) : contextPath;
    }
Decorator context path string.

@param contextPath the context path
@return the string
shenyu-common/src/main/java/org/apache/shenyu/common/utils/PathUtils.java