Skip to content

Commit b16c848

Browse files
committed
Merge branch 'release/5.0.14' into v5
2 parents ddcf017 + bd4de4f commit b16c848

27 files changed

+476
-474
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Retour Changelog
22

3+
## 5.0.14 - 2026.02.06
4+
### Changed
5+
* Fixed a regression caused by the removal of `Stringy` that caused an off by 1 error when saving truncated strings to the database ([#350](https://github.com/nystudio107/craft-retour/issues/350))
6+
37
## 5.0.13 - 2026.01.22
48
### Changed
59
* Fixed an issue with Craft `^5.9` where it throws an error because `craftcms/cms` no longer uses the `Stringy` package ([#349](https://github.com/nystudio107/craft-retour/issues/349))

buildchain/package-lock.json

Lines changed: 208 additions & 211 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-retour",
33
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
44
"type": "craft-plugin",
5-
"version": "5.0.13",
5+
"version": "5.0.14",
66
"keywords": [
77
"craftcms",
88
"craft-plugin",

docs/package-lock.json

Lines changed: 222 additions & 222 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/helpers/Text.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public static function truncate(string $string, int $length, string $substring =
4343

4444
if (!empty($string)) {
4545
$string = strip_tags($string);
46-
$result = StringHelper::truncate($string, $length, $substring);
46+
$adjustedLength = $length - strlen($substring);
47+
$result = StringHelper::truncate($string, $adjustedLength, $substring);
4748
}
4849

4950
return $result;

src/web/assets/dist/assets/dashboard-zTnYFGpq.js renamed to src/web/assets/dist/assets/dashboard-Dermpx0g.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
5.68 KB
Binary file not shown.

src/web/assets/dist/assets/dashboard-zTnYFGpq.js.map renamed to src/web/assets/dist/assets/dashboard-Dermpx0g.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
9.7 KB
Binary file not shown.
-5.68 KB
Binary file not shown.

0 commit comments

Comments
 (0)