Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3413 - Redirect Manager: Interface triggers an error because of wrong deprecated resource type #3416

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)
## Unreleased ([details][unreleased changes details])

## 6.6.4 - 2024-08-14
- #3413 - Redirect Manager: Interface triggers an error because of wrong deprecated resource type

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,18 @@
$.ajax({
url: redirectPath + ".html"
}).done(function (trHtml) {
var tr;
if (response.isCreate) {
var editRedirectTable = $(TABLE_SELECTOR);
var tr = editRedirectTable
tr = editRedirectTable
.find("tbody")[0]
.appendChild(document.createElement("tr"));
$(tr).replaceWith(trHtml);
tr.id = redirectId;
tr.dataset.path = redirectPath;
} else {
$("#" + redirectId).replaceWith(trHtml);
tr = $("#" + redirectId)[0];
}
tr.innerHTML = trHtml;
var ui = $(window).adaptTo("foundation-ui");
ui.clearWait();
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!--
~ ACS AEM Commons
~
~ Copyright (C) 2013 - 2023 Adobe
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
--><!--
Render a redirect as html.
Used by the "Configure Redirection Rule" dialog to update the table of redirects
-->
<sly
data-sly-use.redirectsTemplate="../template.html"
data-sly-call="${redirectsTemplate.row @ redirectResource = resource, allowRearrange = true}"
/>
Loading