Skip to content

Commit

Permalink
#3194 - Redirect Manager: Ignore Case value is not persisting (#3195)
Browse files Browse the repository at this point in the history
* #3194 - Redirect Manager: Ignore Case value is not persisting
* #3194 minor js code formatings fixs
* #3194 move the Ignore Case checkbox to the Basic tab

---------

Co-authored-by: david g <[email protected]>
  • Loading branch information
YegorKozlov and davidjgonzalez authored Nov 15, 2023
1 parent d66f620 commit 1ae3d51
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)

## Added

- #3194 - Redirect Manager: Ignore Case value is not persisting
- #3147 - Allow usage of Dispatcher Flush Rules in AEMaaCS

## 6.2.0 - 2023-09-14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
var evaluateURI = tr.find(".evaluateURI").data("value");
var tags = tr.find(".tags").data("value");
var cacheControlHeader = tr.find(".cacheControlHeader").data("value");
var caseInsensitive = tr.find(".source").data("case-insensitive");

var form = $("#editRuleDialog").find("form");
form[0].reset();
Expand All @@ -205,6 +206,11 @@
evalURI.val(evaluateURI);
evalURI.prop("checked", evaluateURI);

var ciInput = form.find('input[name="./caseInsensitive"]');
if(caseInsensitive) {
ciInput.val(caseInsensitive);
ciInput.prop("checked", caseInsensitive);
}
evalURI.click(function () {
evalURI.val(evalURI.is(":checked"));
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<td is="coral-table-cell" style="width:20px;">
<a class="coral-Link edit-redirect-rule" href="#" target="_blank"><coral-icon icon="edit" size="XS"></coral-icon></a>
</td>
<td is="coral-table-cell" class="source" data-value="${redirect.source}" >
<td is="coral-table-cell" class="source" data-value="${redirect.source}" data-case-insensitive="${redirect.caseInsensitive ? 'true' : 'false'}">
${redirect.source}
</td>
<td is="coral-table-cell" class="target" data-value="${redirect.target}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@
text="Evaluate request URI"
uncheckedValue="{Boolean}false"
value="{Boolean}true"/>
<caseInsensitive
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./caseInsensitive"
text="Ignore Case"
fieldDescription="Match in a case-insensitive manner"
uncheckedValue="{Boolean}false"
value="{Boolean}true"/>
<target
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
Expand Down Expand Up @@ -278,14 +286,6 @@
text="Ignore Context Prefix"
uncheckedValue="{Boolean}false"
value="{Boolean}false"/>
<caseInsensitive
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./caseInsensitive"
text="Ignore Case"
fieldDescription="Match in a case-insensitive manner"
uncheckedValue="{Boolean}false"
value="{Boolean}false"/>
<cacheControlHeader
granite:class="note"
granite:id="redirect-cacheControlHeader"
Expand Down

0 comments on commit 1ae3d51

Please sign in to comment.