Fixes self and alternate atom links (#3161).
Authored by: jplang 2009-04-26
Parent: [r2696]
Child: [r2698]