Fix the redirect feature of the new plugin parser.
Backport a fix for potential privilege escalation vector. Thank you to yoho139.