Version 4.1.25
April 3, 2024
Changed
- Only look at adding site prefixes to
pathonly
redirects via GraphQL
Fixed
- Fixed an issue with Postgres throwing a
PDOException
(#336)
Version 4.1.24
March 5, 2025
Fixed
- Fixed an issue where redirects with a path site prefix were processed in the wrong order, and might not work as expected
- Fixed a logic error where query parameters with duplicate values could be removed from the resulting destination URL
- Destination URLs are no longer URL decoded unless a malicious payload was stripped from them (#330)
Version 4.1.23
February 12, 2025
Changed
- Update buildchain to Vite 6 & Tailwind CSS 4
Fixed
- Fixed an issue where query strings and fragments could be stripped from the destination URL (#327)
Version 4.1.22
January 27, 2025
Fixed
- Fixed an issue where redirects were not, in fact, redirecting with the appropriate site URL prefix as expected (#325)
Version 4.1.21
January 8, 2025
Changed
- Fixed an issue where a GraphQL Retour query could return a URL with a
/
prefixed to it if the destination was a full URL (#320)
Version 4.1.20
December 14, 2024
Changed
- Retour now strips site path prefixes from incoming 404 URL paths, such that redirects will work as expected (any Site sub-path prefix is ignored) (#288)
- Don't create automatic redirects for elements that are not enabled
Fixed
- Fixed an issue where
410 Gone
redirects returned a generic browser error rather than a custom-defined Craft template (#11) - Fixed an issue where an exception could be thrown if a Site had no
baseUrl
defined - Normalize the incoming
url
andpath
so thatmergUrlWithPath()
handles edge-cases properly (#1512) - Fixed an issue where deprecation errors would occur when an element does not have a
uri
(#317)
Version 4.1.19
August 19, 2024
Fixed
- Fixed an issue where the "File Not Found URL" link could be wrong when clicked on in some multi-site setups (#310)
Version 4.1.18
June 24, 2024
Added
- Separate out the plugin settings into General, Statistics, and Advanced tabs
- Added a Set No-Cache Headers setting (defaulting to on) to set
no-cache
headers on the redirect response to prevent client-side caching (#306)
Changed
- When saving a redirect, Retour no longer deletes redirects that have the
redirectDestUrl
of the redirect being saved as theirredirectSrcUrl
(#303)
Version 4.1.17
June 19, 2024
Fixed
- Fixed an issue where the down and up arrows were reversed for sorting purposes (#299)
- Fixed an issue where the "File Not Found URL" link could be wrong when clicked on in some multi-site setups (#290)
- Fixed an issue where the Short Link wouldn't display properly in the element index view (#301)
- Fixed an issue where Short Links wouldn't work properly if they were added to Asset elements (#300)
- Fixed an issue where a "Integrity constraint violation" error could occurr if malformed
redirectSrcUrl
s was introduced into the statistics table (#305)
Version 4.1.16
March 25, 2024
Fixed
- Added the unused
static
to the Tailwind CSSblocklist
to avoid a name collision with a Craft CSS class (#1412) - Fixed an issue with impropertly text-encoded characters in URLs potentially causing a db exception (#291)
- Fixed an issue where an empty redirect in the
excludePatterns
list could cause redirects to stop functioning, add logging when a redirect is excluded (#297)
Version 4.1.15
February 5, 2024
Added
- Add
phpstan
andecs
code linting - Add
code-analysis.yaml
GitHub action
Changed
- Switch over to Vite
^5.0.0
& Node^20.0.0
for the buildchain - Updated docs to use node 20 & a new sitemap plugin
- PHPstan code cleanup
- ECS code cleanup
Fixed
- Fixed an issue that could cause an exception to be thrown if the Preserve Query String setting is on
- Fixed an issue where the filter controls didn't work properly for Short Links
Version 4.1.13
August 15, 2023
Added
- Add db index for
redirectMatchType
to help with query performance (#282)
Changed
- Add permission fallback logic to the dashboard for Short Links access
Security
- Fixed a potential XSS vulnerability with a malformed
referrer
header
Version 4.1.12
April 7, 2023
Changed
- Enforce full URL matching for short links when used within a multi-site setup and enabling any of the content translation method for the field. (#277)
Fixed
Version 4.1.11
March 7, 2023
Added
- Added the ability to disable statistics recording entirely via
enableStatistics
in theconfig.php
(#272)
Changed
- Add versioning to the docs
Fixed
Version 4.1.10
February 9, 2023
Changed
- Use dynamic docker container name & port for the
buildchain
- Update the
buildchain
to use Vite^4.0.0
- Refactored the docs buildchain to use a dynamic docker container setup
Fixed
- Fixed an issue with the rebuild indexes migration (#269)
Version 4.1.9
December 8, 2022
Fixed
- Added missing
priority
column to theretour_static_redirects
too, inInstall.php
migration (#262)
Version 4.1.8
December 7, 2022
Fixed
- Added missing
priority
column to theInstall.php
migration (#262)
Version 4.1.6
November 28, 2022
Added
- Added
EVENT_BEFORE_DELETE_REDIRECT
&EVENT_AFTER_DELETE_REDIRECT
events, so you can hook in before & after a redirect is deleted (#259)
Changed
- Updated docs to use VitePress
^1.0.0-alpha.29
Fixed
- Fixed an issue with the console command throwing an exception due to an uninitialized typed property (#257)
Version 4.1.5
November 3, 2022
Changed
- Fixed HMR in local dev with explicit alias that resolves to the actual directory
- Add
import.meta.hot.accept
for entrypoint JavaScript for HMR
Fixed
- Fixed an issue where the default value for
redirectHttpCode
would cause a validation error to be displayed when creating a new static redirect (#255) - Fixed an issue where the default value for
redirectHttpCode
would cause importing a CSV file to fail if noredirectHttpCode
was provided in the CSV file (#253)
Version 4.1.3
September 14, 2022
Changed
- Fixed an issue where element types that update their
uriFormat
directly rather than re-saving the elements will generate automatic element redirects (#248) - Updated how Retour's components are registered, to allow for overriding via plugin config (#1989) (#11039)
- Update the buildchain to use Vite
^3.1.0
for building frontend assets
Version 4.1.2
September 8, 2022
Changed
- Whether a Short Link redirect is created for "All Sites" or on a per-site basis is now determined by the propagation method of the Short Link field
- Include "Short Link Element ID" in the CSV redirects export
- Allow for the localization of the exported redirects & statistics column names
Fixed
- Fix improperly named field input template (casing) (#247)
- Editing a Short Link field's redirect in the CP now properly preserves its Short Link status, and redirects to the Short Links page
Version 4.1.1
September 2, 2022
Fixed
- Fixed an issue that could cause redirects to not function as expected (#245)
Version 4.1.0
August 30, 2022
Added
- Added the Short Link field type that allows content authors to add short link redirects in an entry
- Added translations in the Javascript views that Retour uses, allowing for better localization (#222)
- If a CSV import has errors, they are displayed on the frontend to make them easier to diagnose (#219)
Changed
Version 4.0.2
June 22, 2022
Changed
- Removed the sub resource integrity on the built JavaScript, which could fail if systems were set up that manipulated the incoming JavaScript resources dynamically (#229)
Version 4.0.1
May 31, 2022
Fixed
- Fixed a "must not be accessed before initialization" error that could occur using GraphQL (#238)
Version 4.0.0
May 18, 2022
Added
- Initial release for Craft CMS 4
Fixed
Version 4.0.0-beta.4
April 9, 2022
Changed
- No longer trim
/
from URLs that are presented in the Retour Dashboard (#227) - Remove deprecated CraftQL support
- Remove unneeded feature checks based on Craft 3.x versions
Fixed
- Fixed an issue where an exception could be thrown in production due to incompatible types
Version 4.0.0-beta.3
March 18, 2022
Fixed
- Fix registering permissions (#224)
Version 4.0.0-beta.2
March 4, 2022
Fixed
- Updated types for Craft CMS
4.0.0-alpha.1
via Rector
Version 4.0.0-beta.1
February 7, 2022
Added
- Initial Craft CMS 4 compatibility