ServiceUrl - Absolute type

Enonic version: 7.10.2

Hi, I have a service in my project that can be called from different parts. I’m using the serviceUrl method with type: 'absolute' to generate the URL.
But even using the ‘absolute’ type, it seems the URL is always generated using the relative path, for example:

Using absolute, wouldn’t it be correct to generate the URL always from the root, or does it make no difference?

If you have “https://domain/” in the generated URL, then it’s already not relative :). In your case it shouldn’t matter where you are calling it from, both URLs should work.

1 Like