OK.. this is driving me crazy..
I have a site which is in a subfolder called silverstripe..
The base ref generated looks like
no prblem.. but all the $Attachment.URL's also still have the /silverstripe/ in them???
I looked in the database and it is not there.. where is this subfolder coming from??