Redirect to first grandchild page?

Permalink Browser Info Environment
Hi and thank you for that useful add-on!

I would love to know if and how it would be possible to extend the code to have an additional option to redirect to the first grandchild page?

The reason for that is that i need a page that redirects to a random child page, and another one that redirect to the first childpage. The only way to achieve that seems to be a hierachy of two redirection pages like so:

Page 1 (redirects to first grandchild page)
- Page 1-1 (redirects to a random child page)
- - Page 1-1-1
- - Page 1-1-2
- - Page 1-1-3
- - Page 1-1-4
- - Page 1-1-5

That would allow me to provide two links, one pointing to the first page, and one pointing to a random page.

Any help would be very much appreciated!

Thank you,
Michael

Type: Discussion
Status: New
okapi
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.