Permalink management

AI-generated summary

The discussion revolves around improving permalink management in Discourse. Mark_Walkom suggests adding free text search to the permalink management section to simplify finding category/topic IDs, as currently relying on site.json is cumbersome. pfaffman asks for context, leading Mark_Walkom to explain that they are reorganizing categories (around 30) and find API-based solutions too complex. pfaffman clarifies that renaming categories automatically creates permalinks, but manual creation is needed when deleting categories, and suggests automation is preferable. Mark_Walkom agrees with the auto-creation but suggests it should be more visible and acknowledges that manual creation could still be easier, especially when using IDs instead of text.

It’d be really great if the permalink management section had the option for free text searching to find the category/topic ID. Currently I’ve been using site.json to find the category ID, and it’s a little clunky.

5 Likes

What is it that you are trying to do?

2 Likes

Add permalinks a little easier.

I meant something like why are you adding permalinks? How many are you adding? Did you do an import? What is the source of the permalinks? They are useful only for incoming links, so there should be a way to automate adding them. That is why the ux for adding them is so bad. It’s usually the worst way to add them.

2 Likes

We’ve been making a few changes and re/moving categories. There’s not a heap of them, maybe 30.

Doing them via the API is only really going to make it a whole bunch harder than it already is.

That’s why I wanted to know more about what you were trying to do. Renaming a category automatically creates a permalink. But if you’re deleting them you do need to create one manually.

https://meta.discourse.org/t/when-a-category-is-renamed-the-previous-url-should-redirect-to-the-new-one/15528/37?u=pfaffman

2 Likes

Ahh ok! :slight_smile: The auto creation makes sense, but maybe that should be listed in with the other permalinks so it’s explicit?

However it’d still be great if the manual creation was a little easier. As per the OP, using category ID and not the text version is painful.