Can we change the title of the topic without changing the slug?


(Spooky) #1

Can we change the title of the topic without changing the slug, at least for admin?


(Wes Osborn) #2

The old slug URL would still redirect to the article, is that your concern with the slug changing?


(Spooky) #3

No, I know that it will redirect, but I prefer not having redirection and just change the title, like in wordpress.


(Wes Osborn) #4

That probably needs to be logged in the #feature category then as I’m pretty sure that it isn’t something Discourse currently allows.


(Sam Saffron) #5

No this can not be done, slug is coupled to title.


(Shri) #6

@sam does the old url then redirect to the new one? Concerned that if we allow high trust users to edit topics, we may end up sending visitors from old links to broken pages.


(Spooky) #7

Is the slug appears in the database? If so, there should be no problem allowing the admin at least to change the title. If the slug isn’t in the database, it is a problem.


(Spooky) #8

The old URL does redirect, it’s ID based and it checks if the slug is the same as the one in the databse or after normalization of the title. I blieve.


(Sam Saffron) #9

The slug is cached, but but the source of truth is always the topic title. Quite a few internals need to be changed to allow overriding, not on any roadmap.