> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tightknit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Navigation & Routes

> Control which pages appear on your community site and add custom sidebar links from Site Navigation in Studio or the Slack app home.

Navigation settings control which pages appear on your community site and what custom links you add to its sidebar.

## Where to configure this

> [tab] In Studio
>
> Go to **[Site > Navigation](https://studio.tightknit.ai/-/website/navigation)**.
>
> ![Navigation settings in Studio](https://mintcdn.com/tightknit/PRBQTlj_BVoNSxUi/assets/studio/site/navigation.png?fit=max\&auto=format\&n=PRBQTlj_BVoNSxUi\&q=85\&s=9e3cd12a1ea9cb0974ac29c6ebd58a0a)
>
> Navigation settings in Studio

> [tab] In Slack
>
> This is now managed in Studio only. Open the Tightknit app home and click **Community Site ➚** under the **Community** module to jump straight there.

> [!TIP]
>
> **Did you know you can change this with our [MCP server](https://docs.tightknit.ai/integrations/mcp.md) too?** Try asking your agent: *"Publish the groups page on our site."*

## Enabled pages

You can configure which pages and routes are enabled on your community site. When disabled, the routes are not accessible and do not display any data.

* [Groups list page](https://docs.tightknit.ai/community-site/pages.md#groups-list) - enables the Groups list and Group detail pages
* [Members list page](https://docs.tightknit.ai/community-site/pages.md#members-list) - enables the Members list page. The Member profile page is not affected by this setting and is *always* accessible.
* [Events list page](https://docs.tightknit.ai/community-site/pages.md#events-list) - enables the Events list and Event detail pages

## Navigation sidebar custom links

> [!NOTE]
>
> This feature is currently in beta.

You can configure up to 3 custom links that will appear in the [navigation sidebar](https://docs.tightknit.ai/community-site/pages.md#sidebar) of the community site. Each item can either be an external link or an internal link to an embedded page.

In Studio, each link is its own row: enter a name and a URL, then set **Type** to **Embedded page** and fill in the page URL. This serves it as an embedded page instead of an outbound link.

In the Slack app, each navigation item is a line of text following the format below:

```text theme={null}
Terms of Service | https://tightknit.ai/legal/terms-of-service | terms-of-service
Knowledge Base | https://example.com
Download the App | https://example.com
```

### Navigation item types

#### External link

An external link is a simple URL that will be opened in a new tab when the navigation item is clicked. The navigation item configuration must follow the format: `Name | URL`.

For example, the following configuration will create a navigation item with the label "Knowledge Base" that will open the URL "[https://example.com](https://example.com)" in a new tab when clicked:

```text theme={null}
Knowledge Base | https://example.com
```

#### Internal link (embedded page)

> [!WARNING]
>
> Internal embeds are an advanced feature. In order to allow certain domains within
> the iframe for the page to function properly, you may need to configure
> certain site security protocols.

An internal link points to an embedded page within the community site. In Studio, set the row's **Type** to **Embedded Page** and enter its page URL; in the Slack app, the line must follow the format `Name | URL | slug`. When an internal link is configured, the embedded page is added to the community site at the URL: `https://<your-site>/p/<slug>`.

For example, the following configuration will create a navigation item with the label "Terms of Service" that will open the embedded page at the URL: `https://<your-site>/p/terms-of-service`. This page will contain an embedded iframe with the contents of the URL `https://example.com`.

```text theme={null}
Terms of Service | https://example.com | terms-of-service
```

![Internal embedded page on the community site](https://mintcdn.com/tightknit/Alib_AyeoUZhTrY3/assets/tightknit-site/navigation/internal-embedded-page.png?fit=max\&auto=format\&n=Alib_AyeoUZhTrY3\&q=85\&s=8faed96739a54c734172341469dca498)

Internal embedded page on the community site

> [!NOTE]
>
> Embedded pages are useful for displaying content from external sources within
> your community site. For example, you can embed your community's calendar or
> other content from external sources. For best practices, make sure the
> embedded URL is the same domain as the community site (see [Site
> Details](https://docs.tightknit.ai/community-site/general.md#site-identity)).

#### Content security policy

The URLs for internal embeds must meet certain criteria before they can be successfully embedded in an iframe.

**1. The Target URL Must Allow Itself to be Embedded**

First, the target URL must allow itself to be embedded by the community site's domain. This is accomplished by a combination of the [`X-Frame-Options`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) header and/or the [`frame-ancestors`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) directive in the [`Content-Security-Policy`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) header. For modern browsers, it is recommended to use the `Content-Security-Policy` and include the community site domain in `frame-ancestors` directive.

For example, you could configure your third-party site to use the following `Content-Security-Policy` header to allow it to be embedded within the community site:

```
Content-Security-Policy: frame-ancestors 'self' https://my-site.tightknit.community
```

Check with your site administrator to see which security settings are appropriate for your case.

**2. The Domains Within the Embedded Page Must be Allowlisted**

Second, you must register the domain(s) of any resource that could appear within the embedded experience. For example, you might link to pages that take the user to another domain, or use images hosted on another domain. Register these domains with Tightknit in the *Additional Allowed iframe Sources*. Otherwise, they will fail to load within the iframe.

The *Additional Allowed iframe Sources* will be used in the `frame-src` directive of the `Content-Security-Policy` header on the community site. The value must be a space-separated list of domains. Tightknit automatically includes `'self'` and the domain of the navigation item URL.

You may use a wildcard within a domain (e.g. `https://*.my-site.com`) or by itself `*` to allow *all* domains.

> [!WARNING]
>
> Using the `*` wildcard to allow all domains should be used with caution. This
> may lead to security vulnerabilities if not properly configured.


## Related topics

- [Pages](https://docs.tightknit.ai/community-site/pages.md)
- [Community Guidelines](https://docs.tightknit.ai/moderation/community-guidelines.md)
- [Global Event Settings](https://docs.tightknit.ai/events/global-event-settings.md)
- [Branding Guide](https://docs.tightknit.ai/branding.md)
- [MCP Server](https://docs.tightknit.ai/integrations/mcp.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.