Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is best approach to replace favicon.ico? #278

Open
pvgenuchten opened this issue Dec 23, 2021 · 1 comment
Open

what is best approach to replace favicon.ico? #278

pvgenuchten opened this issue Dec 23, 2021 · 1 comment

Comments

@pvgenuchten
Copy link
Contributor

I tried replacing favicon.ico by placing it in a folder /tmp
then in config reference the static folder as /tmp and path /
favicon gets correctly replaced, but a side-effect is that any other path outside static, returns 404:

  • localhost:6767/ renders 404 not found, but localhost:6767/index.html works fine
  • localhost:6767/config.json renders 404
@pka
Copy link
Member

pka commented Jan 3, 2022

It's working at least with a non-root path:

[[webserver.static]]
path = "/static"
dir = "./public/"

favicon link in index.html:

<link rel="icon" href="/static/favicon.ico" />

I'll check whether it's also possible with path /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants