MODX EXTRA
FirstChildRedirect
Redirects a page to its first published child resource.
Creator: Jason
Coward (opengeek)
Updated By: markh
About FirstChildRedirect
Now supports MODX 2 and 3. Use FirstChildRedirect for section pages that you want to redirect to the first child.
This snippet redirects a page to its first child element based on menuindex, but is configurable. [Find the documentation here.](https://docs.modx.com/current/en/extras/firstchildredirect)
for more specific information on how to customize this snippet.
[Please report bugs and feature requests on Github.](https://github.com/Mark-H/FirstChildRedirect)
Information
Released
February 7, 2020
Supported Versions
2.5 –
Current
Downloads
24,227
License
GPLv2
Website
Documentation
New in FirstChildRedirect 2.4.0
- Simplify internal logic for response code shortcuts
- Code style reformat, now requiring at least PHP 5.4 (but really, use 7.1+)
- Confirmed compatibility with MODX3 alpha2+