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.
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.@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!)
-
@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.
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.
-
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.
@robi that site doesn't seem to have any favicon:
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
-
@robi that site doesn't seem to have any favicon:
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
@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.
-
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.
@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 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 -
@captain-kirk yes I set it to that one as I could type it in quickly..
H5UP FTW (mine looks better
)
@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?
-
@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?
@jdaviescoates it's simple:
<link rel="icon" type="image/png" href="https://rottig.de/www/images/favicon.png"> -
@jdaviescoates it's simple:
<link rel="icon" type="image/png" href="https://rottig.de/www/images/favicon.png">@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!
-
@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!
@jdaviescoates Sorry, you are right. Every folder has its own index.html
-
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.
-
@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?
@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.
-
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.