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

    Custom menu items in config.xml <menu> <url> can you specify a port?

    Scheduled Pinned Locked Moved webGUI
    4 Posts 2 Posters 372 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.
    • W
      webstaff
      last edited by

      I'm sure someones asked this question before but I've had a hunt and can't find it.

      When adding custom menu items via the config.xml route under packages can you specify a port in the <url> in a way that stops it showing as IPaddress/:port/ and just be ipaddress:port/

      Code is
      <menu>
      <name>UniFi</name>
      <section>Status</section>
      <url>:8443/manage/account/login?redirect=%2Fmanage</url>
      </menu>

      Thats spits out.
      https://X.X.X.X/:8443/manage/account/login?redirect=%2Fmanage
      instead of
      https://X.X.X.X:8443/manage/account/login?redirect=%2Fmanage

      Best regards
      Dave Webster

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

        No, you can't use a custom port there. The packages that use menu entries to reach alternate ports each have a small .php file that redirects users there.

        Might not be too hard to add the ability to use a port there (probably as a separate tag) but that would require being on a version that included that code (either by patching it in or waiting for a release with it).

        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 1
        • W
          webstaff
          last edited by

          Ah thanks for confirming that for me just wanted to check before I went down the route of setting up the PHP page for the redirection.

          Am I reading between the line to much then if I read the second part of the message as this is a feature that's on the list for a future release? :)

          Best Regards

          Dave Webster

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

            I'm not aware of any current feature request for that. If you want to open one, for a future release, feel free to create a feature request at https://redmine.pfsense.org

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.