Fossil

View Ticket
Login
Ticket UUID: 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:
Minor/cosmetic issue. (I've never really noticed prior discovering it in the new sitemap.)
Live example on [http://fossil-scm.org/index.html/attachlist] :)

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:

Check-in [0438d06635892890f39f78995799539d25607e23]