# Redirect

This section explains Redirect config fields, purposes, allowed values, and display rules, with a complete example.

For `dc` format conventions, please read:
- [Getting Started](../Getting_Started)

## Location
- Directory: `DLC/remote/redirect/`
- The `redirect` folder is **not** auto-created; create it manually.

## Complete Example
```dc
available = "en_us"
RedirectUrl = "https://example.com/qq-group"

[DisplayName]
zh_cn = "加入官方群"
en_us = "Join Discord"

[notice]
zh_cn = """即将跳转到浏览器打开链接。
请注意网络安全。"""
en_us = """You are about to open a browser link.
Please stay safe online."""

[tip]
zh_cn = "点击打开链接"
en_us = "Click to open"
```

---

## Field Reference

#### `available`
- **Purpose**: Control visibility.
- **Allowed**:
  - Empty `""`: visible for all languages.
  - A single language code (e.g., `zh_cn` / `en_us`): visible only for that language.
  - Multiple language codes in a comma-separated string (e.g., `"zh_cn,en_us"`): visible only for those languages.
  - A string array (e.g., `["zh_cn", "en_us"]`): visible only for those languages.
  - `hidden`: hidden for all languages.

#### `RedirectUrl`
- **Purpose**: Target URL.
- **Allowed**: String.

#### `[DisplayName]`
- **Purpose**: Name shown in the list.
- **Allowed**: Object `{ zh_cn: "...", en_us: "..." }`.

#### `[notice]`
- **Purpose**: Confirmation text shown before redirect.
- **Allowed**: Localized object.

#### `[tip]`
- **Purpose**: Tooltip text.
- **Allowed**: Localized object.

---

## Behavior
- Entries are shown at the top of the “All” list.
