diff --git a/README.md b/README.md index 78c8956..3b6de58 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ # [misdirection](https://packagist.org/packages/nglasl/silverstripe-misdirection) -_The current release is **2.2.2**_ +_The current release is **2.2.3**_ - 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. +> 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. This is based upon the existing [link mapping](https://github.com/silverstripe-australia/link-mapping) module, aiming to provide a more robust solution for both users and developers alike, with further support and customisation! diff --git a/code/services/MisdirectionService.php b/code/services/MisdirectionService.php index 5528745..77aca66 100644 --- a/code/services/MisdirectionService.php +++ b/code/services/MisdirectionService.php @@ -16,7 +16,7 @@ class MisdirectionService { public static function unify_URL($URL) { - return strtolower(trim($URL, '/?')); + return strtolower(trim($URL, ' ?/')); } /**