HTML X Attachments X Relative Paths
Added by Ricardo Cunha almost 12 years ago
Considering "image1.jpg" is a file attachment in my Wiki page, I know that following HTML fragment will work:
{{html
<img src="/redmine/attachments/download/10675/image1.jpg" alt="" />
}}
But I would like use the attachment file like:
{{html
<img src="image1.jpg" alt="" />
}}
or
{{html
<img src="%ATTACHURLPATH%/image1.jpg" alt="">
}}
or yet
{{html
<img src="attachment:image1.jpg" alt="">
}}
My problem here is in the paths that Redmine creates with differents prefix for each attachment file. I would like document some tasks with machine generated HTML and images. For each image I have to discovery first its path. This is taking a lot of time.
Is there some way do simplify attachament path reference in HTML fragments?
Thanks in advance!
Ricardo