Captive Portal Login Link
-
Hello. Before my update from 2.2 to 2.3 the link was just http://192.168.1.1:8002/ but after it becomes http://192.168.1.1:8002/index.php?zone=LAN
How can i remove the zone parameter in my captive portal login link?
-
You shouldn't.
These parameters, like "?zone=LAN" instructs pfSense which zone is being used by the client.
Remember : pfSense can have multiple zones and without the ?zone variable you'll be creating a syntax error. -
Just a suggestion… zone should be optional if you only set 1 zone
-
It's retrieved here https://github.com/pfsense/pfsense/blob/master/src/usr/local/captiveportal/index.php#L39
Up to you to 'hard code' it ;)
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.