Skip to content

Commit

Permalink
Fix AssetLinkProvider anchor issue when shouldApplyTimestamp=true
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Dec 8, 2023
1 parent 9eae46f commit d4b2080
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private String getPath(final String theme, final String path, final boolean shou
final Matcher matcher = PATH_SUFFIX_PATTERN.matcher(path);
if (matcher.find()) {
final String filePath = Path.of(frontendAssetsPath, theme, matcher.group(1)).toString();
return shouldApplyTimestamp ? timestampUtil.addTimestamp(filePath) : filePath + Optional.ofNullable(matcher.group(2)).orElse("");
return (shouldApplyTimestamp ? timestampUtil.addTimestamp(filePath) : filePath) + Optional.ofNullable(matcher.group(2)).orElse("");
}
throw new IllegalArgumentException("Couldn't match path"+path);
}
Expand Down

0 comments on commit d4b2080

Please sign in to comment.