View Ticket
Ticket Hash: c899dd567b0dc871d6583c7e70563f926afed55f
Title: add %R prefix for /attachdownload and /attachview
Status: Fixed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Fixed
Last Modified: 2015-01-26 18:11:02
Version Found In: 1.30
User Comments:
nobody added on 2015-01-21 16:48:38: (text/x-fossil-plain)
Minor/cosmetic issue. (I've never really noticed prior discovering it in the new sitemap.)
Live example on [] :)

The /attachview and /attachdownload links in attachlist are absolute paths.
Therefore they'll generate 404s on most public setups.

Another simple %R prefix in attach.c seems to work.

    @ <br><a href="%R/attachview?%s(zUrlTail)">%h(zFilename)</a>
    @ [<a href="%R/attachdownload/%t(zFilename)?%s(zUrlTail)">download</a>]<br />

drh added on 2015-01-26 18:11:02: (text/x-fossil-wiki)
Check-in [0438d06635892890f39f78995799539d25607e23]