Doc error: serviceUrl name or service?

Enonic version: 6.6.1
OS: Mac and linux

So this:
http://repo.enonic.com/public/com/enonic/xp/docs/6.6.1/docs-6.6.1-libdoc.zip!/module-lib_xp_portal.html#.serviceUrl

Uses name under parameters, but service under example???

Here it looks like service is correct:

name is definitely wrong as it will simply add ?_name=sf to the url.

Looks like the documentation is wrong but the example is correct.

portal.serviceUrl({service: 'serviceName', type: 'absolute'});

@jsi can you look at this?

This has been corrected in the 6.7.0-SNAPSHOT doc, about 2 weeks ago: http://repo.enonic.com/public/com/enonic/xp/docs/6.7.0-SNAPSHOT/docs-6.7.0-SNAPSHOT-libdoc.zip!/module-lib_xp_portal.html#.serviceUrl

The 6.6.0 and 6.6.1 releases are frozen, so we can’t change them there. I have made a commit, so that it will be corrected when we release 6.6.2. Check out the 6.6.2-snapshot docs if you do not want to be confused by the changes coming in 6.7: http://repo.enonic.com/public/com/enonic/xp/docs/6.6.2-SNAPSHOT/docs-6.6.2-SNAPSHOT-libdoc.zip!/module-lib_xp_portal.html#.serviceUrl