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

Images don't show up when hugo build doesn't use a baseURL #25

Open
jputrino opened this issue Sep 6, 2023 · 0 comments
Open

Images don't show up when hugo build doesn't use a baseURL #25

jputrino opened this issue Sep 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jputrino
Copy link
Collaborator

jputrino commented Sep 6, 2023

Describe the bug

In builds that don't provide a hugo baseURL flag, the product icons and other images used in the site header and footer return 404s. This has to do with how Hugo constructs URLs based on where an image file resides in the site file structure.

To reproduce

Steps to reproduce the behavior:

  1. Open any Netlify deploy preview (not branch deploy) or a preview site in CloudCannon
  2. Verify that the icons are missing

The image below is from a preview in CloudCannon:

2023-09-06_12-21-44

Expected behavior

The icons should appear regardless of the options fed to the hugo build command.

Additional context

@jputrino jputrino added the bug Something isn't working label Sep 6, 2023
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

When branches are created from issues, their pull requests are automatically linked.

1 participant