Skip to content

Commit

Permalink
Merge branch 'release/3.2.17' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jun 24, 2024
2 parents 61fdabd + 2fa601d commit d4dfbad
Show file tree
Hide file tree
Showing 16 changed files with 1,435 additions and 824 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Retour Changelog

## 3.2.17 - 2024.06.24
### 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](https://github.com/nystudio107/craft-retour/issues/306))

### Changed
* When saving a redirect, Retour no longer deletes redirects that have the `redirectDestUrl` of the redirect being saved as their `redirectSrcUrl` ([#303](https://github.com/nystudio107/craft-retour/issues/303))

## 3.2.16 - 2024.06.19
### Fixed
* Fixed an issue where the "File Not Found URL" link could be wrong when clicked on in some multi-site setups ([#290](https://github.com/nystudio107/craft-retour/issues/290))
Expand Down
259 changes: 135 additions & 124 deletions buildchain/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-retour",
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
"type": "craft-plugin",
"version": "3.2.16",
"version": "3.2.17",
"keywords": [
"craftcms",
"craft-plugin",
Expand Down
24 changes: 17 additions & 7 deletions docs/docs/configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,38 @@ Choose the fields to import into Retour from the CSV file by dragging them in th

The **Match Type** field must be either `exactmatch` or `regexmatch` (case sensitive). Anything left blank will be filled in with default values.

### Redirect Loop Prevention

Retour will automatically prevent the creation of a "redirect loop". If you create a new redirect that’s destination URL is the same as the source URL of an existing redirect, it will remove the older redirect.

## Settings

The **Retour->Settings** page allows you to configure various site-wide settings for Retour:

![Screenshot](./resources/screenshots/retour-settings.png)
### General

![Screenshot](./resources/screenshots/retour-settings-general.png)

* **Plugin name** - The public-facing name of the plugin
* **Create Entry Redirects** - Controls whether Retour automatically creates static redirects when an entry’s URI changes.
* **Strip Query String from 404s** - Should the query string be stripped from all 404 URLs before their evaluation?
* **Preserve Query String** - Should the query string be preserved and passed along to the redirected URL?
* **Set No-Cache Headers** - Should `no-cache` headers be set on the redirect response to prevent client-side caching?

### Statistics

![Screenshot](./resources/screenshots/retour-settings-statistics.png)

* **Strip Query String from Statistics** - Should the query string be stripped from the saved statistics source URLs?
* **Record Remote IP** - Should the anonymous ip address of the client causing a 404 be recorded?
* **Statistics to Store** - How many unique 404 statistics should be stored before they are trimmed.
* **Dashboard Refresh Interval** - Dashboard data live refresh interval for the chart and table data
* **Automatically Trim Statistics** - Whether the Statistics should be trimmed after each new statistic is recorded. If you turn this off, statistics will only be trimmed when you visit the Retour Dashboard page in the Control Panel, or you run the `retour/stats/trim` console command (see below).
* **Statistics Trimming Rate Limit** - Whether the Statistics should be trimmed after each new statistic is recorded.
* **Statistics Trimming Rate Limit** - The amount of time required between trimming of statistics.

### Advanced

![Screenshot](./resources/screenshots/retour-settings-advanced.png)

* **Enable API Access** - Determines whether the Retour API endpoint should be enabled for anonymous frontend access.
* **Exclude Patterns** - [Regular expressions](https://regexr.com/) to match URIs that should be excluded from Retour.
* **Additional Headers** - Additional HTTP headers to add to the redirected request

* **CSV Delimiter** - The delimiter between data column values for importing CSV files (normally `,`).

Brought to you by [nystudio107](https://nystudio107.com/)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/docs/resources/screenshots/retour-settings.png
Binary file not shown.
Loading

0 comments on commit d4dfbad

Please sign in to comment.