## concatUrls() function

Concatenates the given base URL and URL.

If the URL is absolute, it is returned as-is.

**Signature:**

```typescript
export declare function concatUrls(baseUrl: string | URL, path: string): string;
```

## Parameters

| Parameter | Type           | Description                      |
|-----------|----------------|----------------------------------|
| baseUrl   | string \| URL | The base URL.                   |
| path      | string         | The URL to concat. Can be relative or absolute. |

**Returns:**

string

- [concatUrls() function](/content/docs/sdk/core.concaturls#concaturls-function/index.html)  
- [Parameters](/content/docs/sdk/core.concaturls#parameters/index.html)
