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

[BUG] Resources are not loaded if base path other than / #124

Open
mhagnumdw opened this issue Mar 21, 2024 · 0 comments
Open

[BUG] Resources are not loaded if base path other than / #124

mhagnumdw opened this issue Mar 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mhagnumdw
Copy link

Describe the bug

favicon.ico, favicon-32x32.png, favicon-16x16.png and site.webmanifest are not found (http status 404), if baseURL is something like "https://my.domain.com/techblog" (/techblog, not only /)

Expected behavior

The resources are loaded.

Screenshots

image

Build Environment

  • OS: Fedora Linux 38 (Workstation Edition)
  • Theme commit: 4e93971
  • Hugo version: v0.124.0-629f84e8edfb0b1b743c3942cd039da1d99812b0+extended linux/amd64 BuildDate=2024-03-16T15:44:32Z VendorInfo=gohugoio

Preview Environment

  • OS: Fedora Linux 38 (Workstation Edition)
  • Browser Chrome

Additional Information

Should slashes be removed here?

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
{{- end -}}
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
{{- with .Site.Params.app.iconColor -}}
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="{{ . }}">
{{- end -}}
<link rel="manifest" href="/site.webmanifest">

When I remove them, everything works fine, regardless of / or /techblog at the end of baseURL.

@mhagnumdw mhagnumdw added the bug Something isn't working label Mar 21, 2024
@mhagnumdw mhagnumdw changed the title [BUG] Resources are not loaded if base other than / [BUG] Resources are not loaded if base path other than / Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant