Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix fixURLs to employ the same logic as in the Wiki #346

Merged
merged 1 commit into from Feb 4, 2013

Conversation

Projects
None yet
2 participants
Contributor

avdv commented Feb 4, 2013

When including an image in a wiki page, the server will look for it in
the static dir first, in the default static dir second and lastly in
the repository dir on a browser request.

When exporting pages e.g. to PDF though, the image's URL was always
mapped into the static dir, making it impossible to export pages with
images stored in the repository itself.

@avdv avdv Fix fixURLs to employ the same logic as in the Wiki
When including an image in a wiki page, the server will look for it in
the static dir first, in the default static dir second and lastly in
the repository dir on a browser request.

When exporting pages e.g. to PDF though, the image's URL was always
mapped into the static dir, making it impossible to export pages with
images stored in the repository itself.
b63f5f2

@jgm jgm added a commit that referenced this pull request Feb 4, 2013

@jgm jgm Merge pull request #346 from avdv/fix-URL-to-path-mapping-for-images
Fix fixURLs to employ the same logic as in the Wiki
2a64312

@jgm jgm merged commit 2a64312 into jgm:master Feb 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment