Revert r6513: the trailing '/' added to attachment links when the `id` is `None` is used for linking to the list of attachments.
Revert r6513: the trailing '/' added to attachment links when the `id` is `None` is used for linking to the list of attachments.

We can't just assume an 'attachment/realm/id' structure, because '/' can be part of the id, see #4812.
pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac