SpaceApi-archive / SpaceApi

Android app and widget showing hackerspace status
18 stars 10 forks source link

Image not shown with trailing slash in the URL #29

Closed slopjong closed 11 years ago

slopjong commented 12 years ago

Currently some images are linked relative to their source in some markdowns. Unfortunately they're not displayed if the URL has a trailing slash.

Is the only solution to use absolute URLs?

Image displayed: https://github.com/SpaceApi/SpaceApi Image not displayed: https://github.com/SpaceApi/SpaceApi/

tdfischer commented 11 years ago

Yes.

eastein commented 11 years ago

Yeah, it is. That's how web browsers do it.

slopjong commented 11 years ago

It's not related to the browser directly. Browsers often append a missing trailing slash according to the RFC specification. But it's not always clear if http://example.com/test is a file or a directory. The RFC says it's a file but this path portion might be treated as a part of a website's routing mechanism.