Portal page not rendering properly
-
I'm trying this on 1.2.2 and 1.2.3RC1.
Standard install with 1 LAN and 1 WAN.
Captive portal works but when a user tries to get to any web page, the browser shows the code entered as the captive portal page.
Seems to be because PFSense is trying to wrap it up in a template and is breaking the
<form>tags.
Here is the source of what is presented when just using the simple example:
<form method="post" action="http://10.10.10.10:8000/">
<input name="auth_user" type="text">
<input name="auth_pass" type="password">
<input name="redirurl" type="hidden" value="">
<input name="accept" type="submit" value="Continue">
</form>
regards,
Peter.
</form> -
<form method="post" action="http://10.10.10.10:8000/">
Is this a deliberate trick for new players? Do I have to dive into the code and remove the paragraph formatting?
I've tried this on two machines - turn on Captive Portal and it's completely broken.regards,
Peter. -
How did you edit that file?
Looks like it was run through some kind of WYSIWYG HTML editor and not a plain text editor.
-
How are you uploading this document to pfSense or are you simply turning on the Captive Portal and using the default document?
I find it odd that 1.2.2 would be broken and this would be the first report of its breakage.
-
You're correct. I apologise for wasting your time.
Textedit on the Mac when you save with a .html extension adds all that guff.
I've moved back to vi and it works as it should.