Adam, I'm not able to get this working. It doesn't seem like ctx.kpac_root is set after I'm sent to the login form. If I add a debugging line of
<!-- kpacroot-[% ctx.kpac_root %] redirect-[% redirect %] hostname-[% ctx.hostname %] --!>
before the block that contains your extra check, the only variable that is set is ctx.hostname. Maybe I'm missing something that sets kpac_root in a config file?
Adam, I'm not able to get this working. It doesn't seem like ctx.kpac_root is set after I'm sent to the login form. If I add a debugging line of
<!-- kpacroot-[% ctx.kpac_root %] redirect-[% redirect %] hostname-[% ctx.hostname %] --!>
before the block that contains your extra check, the only variable that is set is ctx.hostname. Maybe I'm missing something that sets kpac_root in a config file?