Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Portal page not rendering properly

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      petermachell
      last edited by

      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>

      1 Reply Last reply Reply Quote 0
      • P
        petermachell
        last edited by

        @petermachell:

        <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.

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          How did you edit that file?

          Looks like it was run through some kind of WYSIWYG HTML editor and not a plain text editor.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • P
              petermachell
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.