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

regression: Multilingual single-host server adds language code to static resources #4333

Closed
arduanov opened this issue Jan 26, 2018 · 5 comments
Milestone

Comments

@arduanov
Copy link

I have multilang and one host config.
Command hugo server makes files in /en/images/
but complete build with hugo makes files in /images/

hugo 0.35-DEV

@bep bep added this to the v0.35 milestone Jan 26, 2018
@arduanov
Copy link
Author

File structure must be the same.

Sources: https://github.com/arduanov/hugo-bug

Site generate:

hugo -d public_one

tree public_one/
public_one/
├── 404.html
├── categories
│   ├── index.html
│   └── index.xml
├── dist
│   ├── app.bundle.js
│   └── main.css
├── en
│   ├── index.html
│   └── sitemap.xml
├── fr
│   ├── 404.html
│   ├── categories
│   │   ├── index.html
│   │   └── index.xml
│   ├── index.html
│   ├── index.xml
│   ├── sitemap.xml
│   └── tags
│       ├── index.html
│       └── index.xml
├── images
│   └── gohugo-default-sample-hero-image.jpg
├── index.html
├── index.xml
├── sitemap.xml
└── tags
    ├── index.html
    └── index.xml

8 directories, 21 files

Run server:

hugo server -d public_two --renderToDisk

tree public_two/
public_two/
├── 404.html
├── categories
│   ├── index.html
│   └── index.xml
├── en
│   ├── dist
│   │   ├── app.bundle.js
│   │   └── main.css
│   ├── images
│   │   └── gohugo-default-sample-hero-image.jpg
│   ├── index.html
│   └── sitemap.xml
├── fr
│   ├── 404.html
│   ├── categories
│   │   ├── index.html
│   │   └── index.xml
│   ├── dist
│   │   ├── app.bundle.js
│   │   └── main.css
│   ├── images
│   │   └── gohugo-default-sample-hero-image.jpg
│   ├── index.html
│   ├── index.xml
│   ├── sitemap.xml
│   └── tags
│       ├── index.html
│       └── index.xml
├── index.html
├── index.xml
├── sitemap.xml
└── tags
    ├── index.html
    └── index.xml

10 directories, 24 files

@bep bep added the Bug label Jan 27, 2018
@bep
Copy link
Member

bep commented Jan 27, 2018

Yea, I see even my own site with hugo server is broken by this, which I guess means a recent breakage in the server logic. We have a hole in the test coverage in the commands package.

@bep bep changed the title Different static files behavior with multilang config regression: Multilingual single-host server adds language code to static resources Jan 27, 2018
@bep
Copy link
Member

bep commented Jan 27, 2018

I take that back. My site was something different. But I see the problem on your repro site.

@bep bep changed the title regression: Multilingual single-host server adds language code to static resources Multilingual single-host server adds language code to static resources Jan 27, 2018
@bep
Copy link
Member

bep commented Jan 27, 2018

OK, I see it now, it was introduced by my bugfix in 6413559

@bep bep changed the title Multilingual single-host server adds language code to static resources regression: Multilingual single-host server adds language code to static resources Jan 27, 2018
@bep bep closed this as completed in ed4a00e Jan 27, 2018
@github-actions
Copy link

github-actions bot commented Mar 8, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants