Atom link generation fixed to make xml link when browsing in XML.
The error was on the trailing / which was not parsed and the functions
was returning the default json format