> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: External URL Extension Files and Code

## Article: External URL Extension Files and Code

## Article Link: https://dev.wix.com/docs/dashboard-extensions/external-urls/external-url-extension-files-and-code.md

## Article Content:

# External URL Extension Files and Code

An [external URL extension](https://dev.wix.com/docs/overview/extensions-framework/dashboard-extensions/external-url-extensions.md) is available in Wix CLI apps.

> **Note:** A Studio Two site doesn't use this extension. Headless projects don't support it. See [About External URL Extensions](https://dev.wix.com/docs/dashboard-extensions/external-urls/about-external-url-extensions.md).

When you add the extension, the generated file lands under `src/extensions/dashboard/external-page/<extension-folder>/` and the extension is registered in your project's `extensions.ts`.

```text
src/
└── extensions/
    └── dashboard/
        └── external-page/
            └── <extension-folder>/
                └── <extension-folder>.extension.ts
```

| File | What it's for |
|------|---------------|
| `<extension-folder>.extension.ts` | The [configuration file](#configuration-file) for the extension ID and the destination URL. |

The extension has no component file. When a Wix user opens the link, the destination URL loads in a new browser tab.

## Configuration file

The `<extension-folder>.extension.ts` file declares the extension with `extensions.dashboardExternalPage()`. Import `extensions` from `@wix/custom-extensions`:

```ts
import { extensions } from '@wix/custom-extensions';
```

```ts
export default extensions.dashboardExternalPage({
  id: string,
  url: string,
});
```

Example:

```ts
export default extensions.dashboardExternalPage({
  id: 'b2f3c4d5-e6f7-4a8b-9c0d-1e2f3a4b5c6d',
  url: 'https://example.com',
});
```

### Configuration fields

| Field | Type | Description |
|--|--|--|
| `id` | string | Extension ID as a GUID. It must be unique across all extensions in the project. |
| `url` | string | Address of the external destination. When a Wix user opens the app from the Manage Apps page, this address opens in a new browser tab. The address must use `https`. Wix appends the [app instance](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances.md) as an `instance` query parameter so the destination can identify the site. |

## See also

- [About External URL Extensions](https://dev.wix.com/docs/dashboard-extensions/external-urls/about-external-url-extensions.md)
- [External URL Extensions](https://dev.wix.com/docs/overview/extensions-framework/dashboard-extensions/external-url-extensions.md)
- [Add External URL Extensions with the Wix CLI](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/supported-extensions/dashboard/external-links/add-external-url-extensions-with-the-wix-cli.md)
- [About App Instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances.md)