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

How to fix when translate got problem "warning not found image" #280

Open
SavantEVO opened this issue Nov 16, 2023 · 1 comment
Open

How to fix when translate got problem "warning not found image" #280

SavantEVO opened this issue Nov 16, 2023 · 1 comment

Comments

@SavantEVO
Copy link

I'm experiencing an issue with my mkdocs project where images are not displaying correctly when I switch the language from the default (English) to Vietnamese. The problem arises because the URL adds a "vi" prefix, causing the image paths to break. Here are the details of the issue:

Steps to Reproduce:
Start the mkdocs serve command.
Access the default English version at: http://127.0.0.1:8000/ (images display correctly).
Switch the language to Vietnamese.
Access the Vietnamese version at: http://127.0.0.1:8000/vi (images are broken).

Expected Behavior:
Images should display correctly in both the default (English) and Vietnamese versions of the site.

Actual Behavior:
When switching to Vietnamese, the URL prefix "vi" is added, and images do not display because the path does not contain "vi/assets/images."

@kamilkrzyskow
Copy link
Contributor

kamilkrzyskow commented Nov 16, 2023

Are you perhaps using the HTML tag? Switch to Markdown syntax or use absolute paths.

#275

Or perhaps you're using the folder config structure, instead of suffix?

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