public class RedirectTargetValidator
A validator to prevent the user to select invalid redirect path.
Assuming both nodes current page and target page are both on website repository (which also indicates unique node paths).
A redirect path is considered invalid, if:
- It is the path of the redirecting page itself (pointing to itself).
- It leads to circular redirection leading to infinite redirection.
- It leads to a redirection cascade where the last redirection page has no path set and no child page.