Skip to content

Commit

Permalink
Merge branch 'williamschey-master' into feature/pr288
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jun 23, 2023
2 parents 90b6784 + 5997ce7 commit 83e977c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@ public Optional<Site.Page> getPage() {

@Override
public Optional<String> getPagePrefixToApply() {
return Optional.of(pagePrefixToApply);
return Optional.ofNullable(pagePrefixToApply);
}

@Override
public boolean isLinkPrefixEnabled() {
if( child.isIgnoreVariables() ) return false;

return Optional.of(page).map( p -> !p.getTitle().contains("[") ).orElse(true);
return Optional.ofNullable(page).map( p -> !p.getTitle().contains("[") ).orElse(true);

}
}, content);
Expand Down

0 comments on commit 83e977c

Please sign in to comment.