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

URL of image file is broken #217

Open
miyahan opened this issue May 2, 2017 · 3 comments
Open

URL of image file is broken #217

miyahan opened this issue May 2, 2017 · 3 comments
Labels

Comments

@miyahan
Copy link

miyahan commented May 2, 2017

When Markdown file and image file are placed in subdirectory, Images may not be displayed.

This problem disappears when reloading with the web browser. Docpress seems to have generated a relative URL from the previous page.

I made a demonstration.
miyahan/docpress-bug-demo

Am I using the wrong way? Or is this a bug?

@knownasilya
Copy link
Member

You shouldn't need the dot or the slash so: ./my-img.png => my-img.png

@miyahan
Copy link
Author

miyahan commented May 2, 2017

Thank you for advice.
I replaced URL, but problem continues...

and, I updated the demo.
docpress-bug

@blindedbymscience
Copy link

blindedbymscience commented Feb 1, 2018

I'm experiencing the same thing - my directory structure looks like this:

  • docs/
    -- general/
    --- mypage.md
    --- images/
    ---- myimage.png

So then in docs/general/mypage.md I have this code:

<a href="images/myimage.png" target="_blank">![AltText](images/myimage.png);</a>

I run docpress s and it builds fine.

I go to the docs site and navigate around and go to mypage.md - I see all broken images. Then I refresh that page and all the images work.

What the heck?

@knownasilya knownasilya added the bug label Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants