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

    Link to homepage from package

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    15 Posts 3 Posters 6.0k 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.
    • A Offline
      axscode
      last edited by

      actually you will only change one file, and only 1 character because it resides on fbegin.inc which used by every page.

      cheers.

      Regards

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

        Only certain packages do this, and it's never really been supported. Some packages put their files in a subdirectory under /usr/local/www/ instead of in with the other files.

        The link back to the main index page can't start with / because that breaks other functionality.

        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
        • A Offline
          axscode
          last edited by

          ok so must rely on /usr/var/www/packages/package-name/index.php that forwards to main.

          Regards

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

            Something like that, yeah, but it needs to be fixed in the packages themselves.

            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
            • A Offline
              axscode
              last edited by

              Is there any place the header-left logo will be directed when clicked?

              Regards

              1 Reply Last reply Reply Quote 0
              • M Offline
                mdima
                last edited by

                @jimp:

                Only certain packages do this, and it's never really been supported. Some packages put their files in a subdirectory under /usr/local/www/ instead of in with the other files.

                The link back to the main index page can't start with / because that breaks other functionality.

                if the link back can't start with / then the easier thing could be just to link to the "server name and port" of the current request… for example: http[ s ]://<servername>:<port>/[index.php]…
                this just to avoid to patch n packets or to delegate the patching to different people that made the packet, but just to fix this problem in one place only...
                just a suggestion...</port></servername>

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

                  Using an absolute link is even worse than using a relative link starting with /

                  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
                  • M Offline
                    mdima
                    last edited by

                    @jimp:

                    Using an absolute link is even worse than using a relative link starting with /

                    what if I add a simple index.php in the snort directory that just contains:

                    what do you think about it? This should not break any functionality and solve the problem…

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

                      Still the same issue as before with a relative link starting with /

                      Now if you used ../index.php, that might be ok.

                      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
                      • M Offline
                        mdima
                        last edited by

                        @jimp:

                        Still the same issue as before with a relative link starting with /

                        Now if you used ../index.php, that might be ok.

                        ok, I made it… and pushed all the files in my clone... (also the ones for LCDProc, sorry but I thought that a "commit" was enough)...

                        Can you please merge the changes in the main repository?

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