No trailing slash for url without namespace

This removes the trailing slash from the generated href, if the url passed to the adapter does not have a trailing slash. In practice this only gets triggered if there is no namespace, due to the way it gets built (a.pathname).

This fixes urls looking like http://some.resource//model (note the double slash between url & model).