diff --git a/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java b/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java index 4e538686..4a312e54 100644 --- a/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java +++ b/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java @@ -89,6 +89,9 @@ public PathProvider rpPathProvider() { return new RelativePathProvider(servletContext) { @Override public String getApplicationBasePath() { + if (super.getApplicationBasePath().contains(applicationName)) { + return super.getApplicationBasePath(); + } return "/" + applicationName + super.getApplicationBasePath(); } };