# Create a redirect url for the Discord invite link

**URL:** <https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767>\
**Category:** Website\
**Created:** [January 7, 2025, 7:27pm UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767 "2025-01-07T19:27:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodenameTim](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/codenametim/32/31507_2.png) [@CodenameTim](https://forum.djangoproject.com/u/CodenameTim)\
**Post date:** [January 7, 2025, 7:27pm UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767/1 "2025-01-07T19:27:26Z")

</div>

I think there’s benefit in creating a [djangoproject.com/discord](http://djangoproject.com/discord) or [djangoproject.com/chat](http://djangoproject.com/chat) to redirect to [​https://discord.gg/xcRH6mN4fa](https://discord.gg/xcRH6mN4fa).

That code is obfuscated and is weird for other communities/people to share. When individuals share links to the Django discord, it’s not possible to inspect that it’s actually the correct server. I think sharing a [djangoproject.com](http://djangoproject.com) link, even if it redirects, is more trustworthy.

There’s also the scenario in which something happens Discord’s end and the code were invalidated, we’d have a number of places to change. It might be worth to start that process sooner rather than later.

Links (if this is agreed upon, I apologize for doing this in a backwards way):

- [#36071 (Create djangoproject.com URL for Discord / async chat link) – Django](https://code.djangoproject.com/ticket/36071#comment:4)
- [Create a redirect url for the Discord invite link · Issue #1864 · django/djangoproject.com · GitHub](https://github.com/django/djangoproject.com/issues/1864)

---

<div class="post-metadata">

**Author:** ![nanorepublica](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/nanorepublica/32/14211_2.png) [@nanorepublica](https://forum.djangoproject.com/u/nanorepublica)\
**Post date:** [January 7, 2025, 8:04pm UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767/2 "2025-01-07T20:04:28Z")

</div>

Definitely worth doing. However I wonder if doing a subdomain would be more in keeping with the rest the things we use as a community? (ie have [chat.djangoproject.com](http://chat.djangoproject.com), since we have code. and forum. already)

---

<div class="post-metadata">

**Author:** ![benbacardi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/benbacardi/32/19739_2.png) [@benbacardi](https://forum.djangoproject.com/u/benbacardi)\
**Post date:** [January 8, 2025, 10:24am UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767/3 "2025-01-08T10:24:52Z")

</div>

I think this is a good idea, and I support Andrew’s suggestion of a subdomain. The other subdomains aren’t redirects, though—does that pose more of a challenge in implementation? I’m not sure of the setup of [djangoproject.com](http://djangoproject.com).

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/tom/32/6818_2.png) [@tom](https://forum.djangoproject.com/u/tom)\
**Post date:** [January 8, 2025, 6:34pm UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767/4 "2025-01-08T18:34:23Z")

</div>

It’s probably good to do something like this. We can also get a custom URL rather than using an invite link but it’s not ideal as it’s reliant on people boosting the server (essentially, people paying money), and we’re roughly on the edge of having enough boosts for this at the moment, and could lose that URL.

I don’t mind much if it’s a subdomain or not or how it’s implemented.

---

<div class="post-metadata">

**Author:** ![abe](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/abe/32/27140_2.png) [@abe](https://forum.djangoproject.com/u/abe)\
**Post date:** [February 14, 2025, 5:56pm UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767/5 "2025-02-14T17:56:42Z")

</div>

I just did some research on custom Discord invite URLs. The server needs 14 boosts - which we currently have, but it seems that if we go under that threshold we lose the namespace and anyone else can grab it - which seems like a bad vulnerability so I don’t think it’s a good idea.

---

<div class="post-metadata">

**Author:** ![CodenameTim](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/codenametim/32/31507_2.png) [@CodenameTim](https://forum.djangoproject.com/u/CodenameTim)\
**Post date:** [February 14, 2025, 6:28pm UTC](https://forum.djangoproject.com/t/create-a-redirect-url-for-the-discord-invite-link/37767/6 "2025-02-14T18:28:41Z")

</div>

This was completed thanks to @bmispelon!
