Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -7,6 +7,7 @@
- Fixed a bug where flipping an image within the Image Editor didn’t always work. ([#18486](https://github.com/craftcms/cms/issues/18486))
- Fixed a bug where SVG files missing their `width` and `height` attributes weren’t getting them set as expected.
- Fixed an error that occurred if a template referenced a preloaded Single entry followed by a null coalescing operator. ([#18503](https://github.com/craftcms/cms/issues/18503))
- Fixed a bug where links within Redactor fields were getting `target="_blank"` added to them. ([#18500](https://github.com/craftcms/cms/issues/18500))

## 4.17.8 - 2026-02-25

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions src/web/assets/cp/src/js/Craft.js
Original file line number Diff line number Diff line change
Expand Up @@ -1919,15 +1919,18 @@ $.extend(Craft, {

// Open outbound links in new windows
// hat tip: https://stackoverflow.com/a/2911045/1688568
$('a', $container).each(function () {
if (
this.hostname.length &&
this.hostname !== location.hostname &&
typeof $(this).attr('target') === 'undefined'
) {
$(this).attr('rel', 'noopener').attr('target', '_blank');
}
});
// ignore items in contenteditable divs (like redactor or ckeditor fields)
$('a', $container)
.not('[contenteditable="true"] a')
.each(function () {
if (
this.hostname.length &&
this.hostname !== location.hostname &&
typeof $(this).attr('target') === 'undefined'
) {
$(this).attr('rel', 'noopener').attr('target', '_blank');
}
});
},

_elementIndexClasses: {},
Expand Down