You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2021. It is now read-only.
> A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.
5
+
> This module allows both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.
6
6
7
7
## Requirement
8
8
9
-
* SilverStripe 3.1 → **3.5**
9
+
* SilverStripe 3.1 → **4.0**
10
10
11
11
This module does **not** require the CMS.
12
12
@@ -24,25 +24,25 @@ This module does **not** require the CMS.
24
24
25
25
These allow both simple and regular expression link redirections, and can be used for legacy page redirection, vanity URLs (more below), or redirection based on specific URL patterns.
The link mapping with the highest priority (followed by greatest specificity) will be used, and replaces the default automated URL handling out of the box. This default behaviour may be configured to only hook into a page not found:
30
30
31
31
```yaml
32
-
MisdirectionRequestFilter:
32
+
nglasl\misdirection\MisdirectionRequestFilter:
33
33
enforce_misdirection: false
34
34
```
35
35
36
36
When there are multiple matches, the link mapping first created will be used. This default behaviour may be configured to prioritise the link mapping most recently created:
@@ -81,16 +81,12 @@ It is possible to bypass the request filter completely by appending `?misdirecte
81
81
This may be completely replaced, in which case legacy URLs will no longer resolve based on page version history.
82
82
83
83
```yaml
84
-
MisdirectionRequestFilter:
84
+
nglasl\misdirection\MisdirectionRequestFilter:
85
85
replace_default: true
86
86
```
87
87
88
88
When a page is moved, the appropriate link mappings are automatically created and maintained. This allows full control over which legacy URLs remain in the system.
89
89
90
-
#### Historical Link Mappings
91
-
92
-
To ensure the current page version history remains, `/dev/tasks/MisdirectionHistoricalLinkMappingsTask` may be used to instantiate the appropriate link mappings. However, this task is currently only supported by `MySQL`.
0 commit comments