Skip to content

Commit

Permalink
workaround for strange sling:redirect properties with boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerr committed Jun 6, 2024
1 parent 8b63bc9 commit 2ae511e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ protected static String getFinalTarget(ResourceHandle resource, List<String> tra
redirect = contentResource.getProperty(PROP_TARGET);
if (StringUtils.isBlank(redirect)) {
redirect = contentResource.getProperty(PROP_REDIRECT);
if ("true".equals(redirect) || "false".equals(redirect)) {
redirect = null; // sometimes that's used as boolean property - no idea how to handle that.
}
}
}
}
Expand Down

0 comments on commit 2ae511e

Please sign in to comment.