vdlp / oc-redirectconditionsuseragent-plugin
Adds UserAgent specific conditions to the Redirect plugin.
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 1
Open Issues: 0
Type:october-plugin
Requires
- php: ^8.0.2
- composer/installers: ^1.0 || ^2.0
- matomo/device-detector: ^6.0
- vdlp/oc-redirectconditions-plugin: ^1.3
This package is auto-updated.
Last update: 2024-12-14 15:51:11 UTC
README
This is an extension plugin for the Redirect plugin for OctoberCMS.
Requirements
- Plugin
Vdlp.Redirect
- Plugin
Vdlp.RedirectConditions
Conditions
CrawlerCondition
On a positive match the redirect will take place if the request came from a Crawler.
DeviceCondition
On a positive match the redirect will take place if the request came from a specific device.
Available device types to choose from:
- Smartphone
- Tablet
- Desktop
OperationSystemCondition
On a positive match the redirect will take place if the request came from a specific operating system.
Available operating system families to choose from:
- Android
- AmigaOS
- Apple TV
- BlackBerry
- Brew
- BeOS
- Chrome OS
- Firefox OS
- Gaming Console
- Google TV
- IBM
- iOS
- RISC OS
- GNU/Linux
- Mac
- Mobile Gaming Console
- Real-time OS
- Other Mobile
- Symbian
- Unix
- WebTV
- Windows
- Windows Mobile
Unit tests
To run the Unit Tests of this plugin, execute the following command from the project root:
vendor/bin/phpunit plugins/vdlp/redirectconditionsuseragent
Questions? Need help?
If you have any question about how to use this plugin, please don't hesitate to contact us at octobercms@vdlp.nl. We're happy to help you. You can also visit the support forum and drop your questions/issues there.