Details
- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
Major
 - 
    None
 - 
    2.7
 - 
    None
 
- 
        Include,Macro,attachment
 - 
        Unknown
 - 
        
 
Description
Creating a page "Space1.Page1", attaching a file and linking it into the content of Page1 (or use [[image:attachment.png]]) will cause the link to break when using the include macro on "Space2.Page2". Instead of receiving "/bin/download/Space1/Page1/attachment.png" as a link we get "/bin/download/Space2/Page2/attachment.png" which obviously fails.
It is possible to write the link differently on Page1 (i.e. Space1.Page1@attachment.png) but this is always a little hacky and not very nice to use for unexperienced users (especially if they just want to use the WYSIWYG editor). Also note that using "include document="Space1.Page1" context="new"/" is of no use either.
Lastly, this is unrelated due to the difference in Space. Using Page1 and Page2 on the same space gives just the same faulty result.