Skip to content

Commit

Permalink
Merge pull request #2800 from massgov/release/0.421.0
Browse files Browse the repository at this point in the history
Release 0.421.0
  • Loading branch information
joeg8612 authored Jan 14, 2025
2 parents 6cfba86 + 5a241ae commit ecd3b52
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@


## [0.421.0] - January 14, 2025

### Changed
- DP-34926: Mass.gov font system responsive to browser settings.

### Fixed
- DP-36660: Increase iframe resizer JS send dimensions to parent timeout from 1/3 second to 1/2 second.
- DP-36751: Fixed issue with external link paths being changed to internal paths.



## [0.420.0] - January 7, 2025

### Added
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Drupal\mass_fields;

use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Entity\EntityTypeManagerInterface;

/**
Expand Down Expand Up @@ -49,6 +50,12 @@ public function processText($text) {
foreach ($anchors as $anchor) {
// Extract the 'href' attribute value
$href = $anchor->getAttribute('href');
$base_host = \Drupal::request()->getSchemeAndHttpHost();
if (UrlHelper::isExternal($href)) {
if (!UrlHelper::externalIsLocal($href, $base_host)) {
continue;
}
}

// Check for 'media/[id]' or 'media/[id]/download' pattern and extract ID
if (preg_match('/media\/([0-9]+)(\/download)?(\?.*)?$/', $href, $matches)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ window.addEventListener('load', function () {

observer.observe(document.body, config);

// Sent another update after 1/3 of a second just in case
window.setTimeout(sendDimensionsToParent, 300);
// Sent another update after 1/2 of a second just in case
window.setTimeout(sendDimensionsToParent, 500);

}
// if mutationobserver is NOT supported
else {
// check for changes on a timed interval, every 1/3 of a second
window.setInterval(sendDimensionsToParent, 300);
// check for changes on a timed interval, every 1/2 of a second
window.setInterval(sendDimensionsToParent, 500);
}


Expand Down
10 changes: 4 additions & 6 deletions scripts/changelog-body.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@


## [0.420.0] - January 7, 2025
## [0.421.0] - January 14, 2025

### Added
- DP-35022: Add proper cache tags to the Search block on mobile.

### Changed
- DP-36025: Upgraded the ckeditor fullscreen module to beta10 in order to fix z-index problems.
- DP-34926: Mass.gov font system responsive to browser settings.

### Fixed
- DP-36349: Collections report.
- DP-36660: Increase iframe resizer JS send dimensions to parent timeout from 1/3 second to 1/2 second.
- DP-36751: Fixed issue with external link paths being changed to internal paths.

0 comments on commit ecd3b52

Please sign in to comment.