Skip to main content

include_url_env

No overview available.

def include_url_env(
url: string,
env_name: string
) - > string

Appends environment-specific query parameters to a given URL to ensure consistent tracking across different deployment stages.

Parameters

NameTypeDescription
urlstringThe base URL string that will be modified.
env_namestringThe name of the target environment (e.g., 'production', 'staging') to be added as a query parameter.

Returns

TypeDescription
stringThe modified URL containing the original path and the newly appended environment parameters.