Bug #6391

View Current Portal Page goes to wrong URL

Added by Stefan Kronawithleitner almost 5 years ago. Updated about 4 years ago.

Captive Portal
Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:
Release Notes:


When uploading custom HTML for the Captive Portal, there are options to view the current uploaded HTML in browser.

This does not work for the "Current Portal Page" when outside the internal network, because the URL of the "view" button is wrong.
The "Current Auth Error Page" view button and "Current Logout Page" view button have the correct URLs to view the site (and not open the portal itself). Opening the portal itself generates the "An error occurred. Please check the system logs for more information." error - because it is not a client that should/can authenticate outside the network (log error: "/index.php: Zone: zone_name - Captive portal could not determine client's MAC address. Disable MAC address filtering in captive portal if you do not need this functionality.")

Portal Page view: https://domain:8003/?zone=zone_name
Auth Error Page view: https://domain/services_captiveportal.php?zone=zone_name&act=viewerrhtml
Logout Page view: https://domain/services_captiveportal.php?zone=zone_name&act=viewlogouthtml

Looking at the parameters, it seems clear that "viewhtml" would work, and in fact, does:
https://domain/services_captiveportal.php?zone=zone_name&act=viewhtml works as expected.

Changing the button to this URL would make it possible to view the portal page from external hosts.


#1 Updated by Renato Botelho over 4 years ago

  • Status changed from New to Feedback
  • Assignee set to Renato Botelho
  • Target version set to 2.4.0
  • % Done changed from 0 to 100

PR has been merged

#2 Updated by Jim Pingle over 4 years ago

  • Status changed from Feedback to Resolved

Works correctly now

#3 Updated by Jim Pingle about 4 years ago

  • Target version changed from 2.4.0 to 2.3.3

Also available in: Atom PDF