# Using Permalinks

**URL:** <https://forums.plex.tv/t/using-permalinks/273960>\
**Category:** Forum FAQ & Guides\
**Created:** [June 21, 2018, 10:36pm UTC](https://forums.plex.tv/t/using-permalinks/273960 "2018-06-21T22:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinoCharlino](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kinocharlino/32/4861_2.png) [@kinoCharlino](https://forums.plex.tv/u/kinoCharlino)\
**Post date:** [June 21, 2018, 10:36pm UTC](https://forums.plex.tv/t/using-permalinks/273960/1 "2018-06-21T22:36:59Z")

</div>

Our new forum platform is pretty smart about permalinks. Edited topic titles and typos won’t interfere with forwarding. Shortening URLs is easy, and pointing users to a specific post (or place in time) in a topic is very straightforward. Here are some uses for _permalinks_:

- Bookmark or link to a _category_ or _tag_ topic list
- Bookmark or link to a topic list filtered using both a _category_ and a _tag_
- Point to a specific moment in time in a topic
- Point to a specific post in a topic
- Save an advanced search using a variety of search terms

## Contents

- [Permalink Syntax](#heading---permalink-syntax)
- [Adaptive URLs](#heading---adaptive-urls)
- [Pointing to a specific post or time](#heading---pointing-posts)
- [Shortening URLs](#heading---shortening-urls)
- [Legacy URLs from Vanilla](#heading---legacy-urls)

## Permalink Syntax
Discourse provides permalinks for categories, tags, topics, and posts. Permalinks for categories and tags are slightly different from topics and posts.
### Category & Tag Permalinks

This is a typical permalink for a **category** :

`/c/plex-media-server/computers`

This is a typical permalink for a **tag** :

`/tags/windows-server`

Discourse **category** and **tag** permalinks contain these 4 parts:

| Type | Top Level Category or Tag | 2nd Level Category |
| --- | --- | --- |
| `c` or `tags` | plex-media-server | computers |

**Type :** _”c”_ denotes that it is for a category, and _“tags”_ is for tags.

**Top Level Category or Tag :** This can either be the top level category or just the tag.

**2nd Level Category :** Optional, used only when filtering down to a 2nd level category, and not used when filtering by a tag

### Topic & Post Permalinks

This is a typical permalink for a **topic** :

`/t/watch-crossover-episodes-of-several-series-in-order/217412/1`

Discourse **topic** and **post** permalinks contain these 4 parts:

| Type | Topic Title | Topic ID | Post # |
| --- | --- | --- | --- |
| `t` | watch-crossover-episodes-of-several-series-in-order | 217412 | 1 |

**Type :** _”t”_ denotes that it is for a topic. This is required for the permalink to resolve properly.

**Topic Title :** The title of the topic, as provided by the user. It’s there for SEO purposes and is not actually needed to get the visitor to the correct topic. Further down we refer to this also as the _“friendly”_ name.

**Topic ID :** The topic’s serial number, and, consequently, the most important part of the permalink. This is needed to get the visitor to the correct topic.

**Post # :** Optional, denotes the post ID, takes the user to the specific post in the topic.

## Adaptive URLs

The most common type of permalink shared by users and staff is the one for topics and posts. Here is an example”

`/t/watch-crossover-episodes-of-several-series-in-order/217412/1`

Let’s break this permalink down:

| Type | Topic Title | Topic ID | Post # |
| --- | --- | --- | --- |
| `t` | watch-crossover-episodes-of-several-series-in-order | 217412 | 1 |

This permalink contains a SEO _”friendly”_ topic title. If the user were to edit their topic title and change it to something else, existing permalinks posted in the forums or shared outside of the forums will still forward, as expected. Example:

A user creates the topic _“Watch Crossover Episodes of Several Series in Order”_. which results in this permalink:

`/t/watch-crossover-episodes-of-several-series-in-order/217412`

The user later decided to change the topic title to _”Watch Crossover Episodes in Order”_, resulting in the permalink updating to:

`/t/watch-crossover-episodes-in-order/217412`

As long as the **Topic ID** (in this case: `217412`) is present, it doesn’t matter if someone uses the old permalink or the new one, the destination will be the same. When using old/outdated permalinks, Discourse will forward to the new one so users can see the different in their browser.

## Pointing to a specific post or time

You can forward users to the first, last, or any post in-between in a topic.

### First Post

Add `/1` to the end of a topic permalink to point to the first post in the topic. Example:

`/t/watch-crossover-episodes-of-several-series-in-order/217412/1`

### Last Post

Add `/last` to the end of a topic permalink to point to the first post in the topic. Example:

`/t/watch-crossover-episodes-of-several-series-in-order/217412/last`

### Specific Post

Discourse uses `Post ID` to forward users to a specific post in a topic. You can enter the post number manually, or copy/paste it by clicking the _Share_ button or _right-clicking_ on the date for the post.

IMG : permalinks 1

The resulting permalink to a specific post will look like this:

`/t/watch-crossover-episodes-of-several-series-in-order/217412/2`

This also works with the shortened version:

`/t/217412/2`

## Shortening URLs

If size matters when sharing permalinks in the forums, Slack, or elsewhere, you can remove the **Topic Title** and keep the permalink in tact. Example:

| From | To |
| --- | --- |
| `/t/watch-crossover-episodes-of-several-series-in-order/217412` | `/t/217412` |

This also works when pointing to a specific post in a topic. Example:

| From | To |
| --- | --- |
| `/t/watch-crossover-episodes-of-several-series-in-order/217412/03/` | `/t/217412/03` |

## Legacy URLs from Vanilla

### Top & Latest

Vanilla uses `#Top` and `#Latest` at the end of their URLs to point users to the top or bottom of the thread. Discourse does not use this method, and thus anything after the `#` in legacy URLs from Vanilla were ignored in our migration to Discourse. With that stripped from the permalink, Discourse will by default send users to the top (first post) of a topic.

### Specific post in a topic

Discourse is forwarding all legacy URLs from Vanilla that contain a reference to a specific post in the topic (such as `#Comment_907265`) to the same place in the Discourse topic.

Permalinks in Vanilla that send users to a specific post in a topic look like:

`/discussion/comment/907265/#Comment_907265`

In Discourse, the same permalink forwards to:

`/t/kurzanleitung-filebot/100059/8`
