%ATTACHURL%
or %PUBURL%
.
%ATTACHURL%
is the full URL for attachments in the current topic. For example:
%ATTACHURL%/image.gif
To link to a file attachment in another topic, use the %PUBURL%
variable. For example:
%PUBURL%/%WEB%/OtherTopic/image.gif
See More Tips...
-- Contributors: TWiki:Main.PaulineCheung