Skip to content

Commit

Permalink
changed the condition to verify contains of trim path
Browse files Browse the repository at this point in the history
  • Loading branch information
Seenivasa Ragavan authored and Seenivasa Ragavan committed Apr 12, 2021
1 parent 4d70e07 commit 800cb5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private JsonArray getPathsList(ReplicationTransaction tx, String domain, String
jsonArray.add(MessageFormat.format("{0}://{1}{2}", protocol, domain, path));

//add trimmed path
if (StringUtils.isNotEmpty(additionalTrimPath) && !path.endsWith("/content")) {
if (StringUtils.isNotEmpty(additionalTrimPath) && path.contains(additionalTrimPath)) {
String pathAfter = path.substring(path.indexOf(additionalTrimPath) + additionalTrimPath.length());
jsonArray.add(MessageFormat.format("{0}://{1}{2}", protocol, domain, pathAfter));
}
Expand Down

0 comments on commit 800cb5f

Please sign in to comment.