Skip to content

Commit

Permalink
Adobe-Consulting-Services#3138 Support for case insensitive redirect …
Browse files Browse the repository at this point in the history
…rules (Adobe-Consulting-Services#3153)

* Adobe-Consulting-Services#3150 Support for case-insensitive redirect rules
  • Loading branch information
YegorKozlov committed Oct 19, 2023
1 parent bc0ee23 commit 60c0e1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)
<!-- Keep this up to date! After a release, change the tag name to the latest release -->-

## Unreleased ([details][unreleased changes details])

- #3150 - Support for case-insensitive redirect rules ( [NC] flag equivalent of apache)
- #3138 - Re-arrange action removes data from redirect node

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,10 @@ public TabularData getRedirectRules(String storagePath) throws OpenDataException
if (pathMatchingRules != null) {
rules.addAll(pathMatchingRules.values());
}
Map<String, RedirectRule> ignoreCaseRules = cfg.getCaseInsensitivePathRules();
if (ignoreCaseRules != null) {
rules.addAll(ignoreCaseRules.values());
}
Map<Pattern, RedirectRule> patternMatchingRules = cfg.getPatternRules();
if (patternMatchingRules != null) {
rules.addAll(patternMatchingRules.values());
Expand Down

0 comments on commit 60c0e1d

Please sign in to comment.