Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Rename Surfer browser tab name and change favicon?

    Surfer
    5
    21
    480
    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.
    • jdaviescoates
      jdaviescoates last edited by jdaviescoates

      I'd like a logo and name of choice to be displayed in browsers when visiting an install of Surfer - is this possible?

      Edit: just to check, I tried changing the label and icon for the app in my Dashboard, but that didn't seem to do anything (other than change the icon and app in my dashboard of course! 😛 )

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply Reply Quote 0
      • robi
        robi last edited by

        just upload a favicon.ico

        Life of Advanced Technology

        jdaviescoates 1 Reply Last reply Reply Quote 0
        • jdaviescoates
          jdaviescoates @robi last edited by

          @robi said in Rename Surfer browser tab name and change favicon?:

          just upload a favicon.ico

          Just did that, didn't seem to make any difference.

          I use Cloudron with Gandi & Hetzner

          robi 1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            Surfer currently has no concept of such customization, but I can see how it makes sense.

            jdaviescoates 1 Reply Last reply Reply Quote 2
            • jdaviescoates
              jdaviescoates @nebulon last edited by jdaviescoates

              @nebulon yeah, I'd really like the browser title to be 'Tools for Change - The United Diversity Library' or something rather than just 'Surfer' and to be able to use a custom favicon.ico

              Tag and move this to Feature Requests?

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff last edited by

                While surfer is developed by the Cloudron team, it is not really a platform feature, which is what feature requests forum section is for.
                Since feature requests for surfer pile up though, I will tackle them next week, I also have to see how far we can go with element ui and the much wanted rework of the file/folder list.

                jdaviescoates 1 Reply Last reply Reply Quote 3
                • jdaviescoates
                  jdaviescoates @nebulon last edited by

                  @nebulon said in Rename Surfer browser tab name and change favicon?:

                  While surfer is developed by the Cloudron team, it is not really a platform feature, which is what feature requests forum section is for.

                  Fair enough, makes sense.

                  @nebulon said in Rename Surfer browser tab name and change favicon?:

                  Since feature requests for surfer pile up though, I will tackle them next week, I also have to see how far we can go with element ui and the much wanted rework of the file/folder list.

                  Excellent news, thanks!

                  Fingers and toes crossed you manage to get the folder/ file listing sorted (and as a bonus make title and favicon customisable too!) 😄

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply Reply Quote 0
                  • robi
                    robi @jdaviescoates last edited by

                    @jdaviescoates

                    When I visit a site hosted by Surfer that I created, my browser requests a favicon and takes any HTML title tag I set in the index.html.

                    That is all that is needed.
                    See my Surfer site: https://venture.toldyouso.com/

                    If you mean something else, please clarify.

                    Life of Advanced Technology

                    jdaviescoates ? 2 Replies Last reply Reply Quote 3
                    • jdaviescoates
                      jdaviescoates @robi last edited by

                      @robi that site doesn't seem to have any favicon:

                      no_favicon.png

                      But I see what you mean about the name.

                      But in my case, I don't have an index.html file because I don't really want nor need one (having one would just complicate things).

                      The whole point of the site is just share the files that I've uploaded there:

                      https://library2.uniteddiversity.coop/

                      Saying that, he old version http://library.uniteddiversity.coop/ has no favicon and the title is just index of / so having the surfer favicon and Surfer as the title isn't a lot different!

                      A bigger problem is the Surfer's lack of symlinks

                      I use Cloudron with Gandi & Hetzner

                      robi 1 Reply Last reply Reply Quote 0
                      • robi
                        robi @jdaviescoates last edited by

                        @jdaviescoates said in Rename Surfer browser tab name and change favicon?:

                        @robi that site doesn't seem to have any favicon:

                        it does now.

                        But I see what you mean about the name.

                        But in my case, I don't have an index.html file because I don't really want nor need one (having one would just complicate things).

                        I see, you just want a directory listing. Yeah can't have it both ways, but you could change the Surfer code and replace its favicon and <title> as it builds the page.

                        A bigger problem is the Surfer's lack of symlinks

                        it's not symlinks it doesn't support, it's directories.

                        Life of Advanced Technology

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @robi last edited by

                          @robi your favicon seems to be that from cloudron. But it generally works. You can see on https://rottig.de
                          btw. We are using the same template 🙂

                          robi 1 Reply Last reply Reply Quote 0
                          • robi
                            robi @Guest last edited by

                            @captain-kirk yes I set it to that one as I could type it in quickly..

                            H5UP FTW (mine looks better 😉 )

                            Life of Advanced Technology

                            jdaviescoates 1 Reply Last reply Reply Quote 0
                            • jdaviescoates
                              jdaviescoates @robi last edited by

                              @robi I still don't see any favicon on your site. Maybe you removed it as you were only adding it to demonstrate it work?

                              @Captain-Kirk I see yours. So how did you add it?

                              Perhaps mine at https://library2.uniteddiversity.coop/favicon.ico doesn't show up because I don't have a index.html file uploaded?

                              I use Cloudron with Gandi & Hetzner

                              ? robi 2 Replies Last reply Reply Quote 0
                              • ?
                                A Former User @jdaviescoates last edited by

                                @jdaviescoates it's simple:
                                <link rel="icon" type="image/png" href="https://rottig.de/www/images/favicon.png">

                                jdaviescoates 1 Reply Last reply Reply Quote 1
                                • jdaviescoates
                                  jdaviescoates @Guest last edited by

                                  @captain-kirk I assume you've got that in your index.html?

                                  At present I've not got an index.html to put it in! But thanks for the info! 🙂

                                  I use Cloudron with Gandi & Hetzner

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @jdaviescoates last edited by

                                    @jdaviescoates Sorry, you are right. Every folder has its own index.html

                                    1 Reply Last reply Reply Quote 0
                                    • nebulon
                                      nebulon Staff last edited by

                                      So being able to specify a custom name and favicon only makes sense to be applied for public folder listing/admin ui.

                                      As soon as there is some index.html there is no reason trying to override whatever tile and favicon is mentioned there.

                                      1 Reply Last reply Reply Quote 1
                                      • ?
                                        A Former User last edited by A Former User

                                        Yeah... idk I've never had this issue but I've always had an html file specify a favicon and title. Example: https://atrilahiji.dev/

                                        IMO it is fine as is, but I guess I don't really get the use case. For me if surfer is a simple static file server it should be up to the user to provide html that give it that info rather than add bloat that lets you configure those things in place of having html that does that.

                                        1 Reply Last reply Reply Quote 0
                                        • robi
                                          robi @jdaviescoates last edited by

                                          @jdaviescoates it's there. others see it, as do I.

                                          Browsers displaying an HTML page will request a favicon.ico by default. Hence I have no HTML to point to a favicon.

                                          Browsers displaying a directory listing involves no HTML, and hence uses a different subsystem to generate the listing page.

                                          That's what you're hunting down to change, a custom Surfer configuration branded for you.

                                          Life of Advanced Technology

                                          1 Reply Last reply Reply Quote 0
                                          • nebulon
                                            nebulon Staff last edited by

                                            So regarding the use-cases, I see two distinct use-case. One is of course normally serving up static files (like a webpage) including html assets. The second use-case is to use the built-in public file listing. This simply avoids users having to write some script pumping out a nice html page to traverse the tree. For the second one, I can understand why someone would like to have some kind of "branding" here.

                                            1 Reply Last reply Reply Quote 3
                                            • nebulon
                                              nebulon Staff last edited by

                                              I've released the new surfer version which has this fixed. The update is currently only available when checked for manually.

                                              1 Reply Last reply Reply Quote 2
                                              • First post
                                                Last post
                                              Powered by NodeBB