Official Content

Specifies how the Services URL should be treated when connecting to the back-end server.


Absolute Uses the complete URL.
Host Relative Uses the URL relative to the current host.


Generators: Angular
Level: Generator


This property specifies if the absolute URL specified in the Services URL property is used in the generated programs to connect to the backend services, or if just the path of it.

Using just the host-relative path of the Services URL is good for staging scenarios, where the same container of the Angular frontend is used for pre-production and production environments.

Runtime/Design time

This property applies only at design time.


Let's suppose you have an Angular app and configure the following in your Environment:

Services URL = ''
Services URL Mode = 'Host Relative'

That configuration makes the Angular frontend do requests to '/mybackend' instead of ''.

Now you can deploy

  • Backend services for pre-production to
  • Backend services for production to
  • Angular frontend to a Docker container.

and run one instance of the docker container with the Angular app on, and another on Furthermore, configure a gateway so that requests to '/mybackend' that come from are directed to, and those that come from are directed to


This property is available since GeneXus 18 Upgrade 3.

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant