How to change Category's ID?

Question:
How do I change the category’s ID (The number at the end of the URL)?

Example: Latest bug topics - Discourse Meta

  • Category URL: https://meta.discourse.org/c/1
  • Category ID = 1

Context:
I am setting up my Discourse community and have created 5 categories that should be in a specific order.

I could specify the display order using the category’s Position on the categories page setting.

But ideally, I want the first category to have ID 1, the second category to have ID 2, etc.

Is there a setting I simply missed?

Thank you for your time :man_bowing:

Welcome, digital potion :slight_smile:

As far as I know, IDs are incremental, automatically generated and can’t be overridden.

There are several ways to order categories. To you, is the ID issue only an aesthetic URL problem?

If it is, I can kind of relate. I spent a little bit of effort initially trying to get my site’s primary categories to have nice, sensible single-digit numbers in an order that made sense to me.

2 Likes

Thank you for your quick response Canapin :man_bowing:

Roger that :ok_hand:

Yes. I was linking the Discourse URLs to my homepage and preferred them to be in a specific order.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.