Captive Portal post-auth redirect is not properly respected
The value of "After authentication Redirection URL" in Captive Portal is supposed to override the automatically detected browser request URL so that the user is forced to go to that destination. This is the behavior stated under the field in the GUI. It is not a value of last resort.
Currently the code is not respecting that behavior.
While here, the redirect code handling is a bit of a mess and needs fixed up in general.
Updated by Gertjan KROEB 9 months ago
A feedback :
I saw my browser sending 'plain http' to the https port.
File /etc/inc/captiveportal.inc line 2261 :
$protocol = (isset($cpcfg['httpslogin'])) ? 'https://' : 'http://';
$cpcfg is assigned a couple of lines lower, line 2275 :
$cpcfg = $config['captiveportal'][$cpzone];
I put this line before line 2261 and all is well.
edit : is it ok to leave message like this over here ?