Hello,
My site uses Japanese by default.
I wanted to change the permalink of the URL, I asked a question this time.
It is now like …/t/topic/16(article number), and is it possible to make it like ../16?
Or is it possible to make …/t/16?
The discussion revolves around customizing URLs. The original poster, zyouchi, wants to change the permalink structure of their site from .../t/topic/16 to a simpler format like ../16 or .../t/16. However, vinothkannans clarifies that removing the slug entirely is not possible.
vinothkannans suggests that using the “encoded” slug generation method can achieve a URL format like .../t/(title_name)/(topic_id), which includes Japanese characters in the topic slugs.
zyouchi then asks about customizing directory listings, specifically:
.../t/ instead of showing no content..../t/topic/ instead of a randomly selected topic page.../t/topic/ is generated again in the hierarchy below .../t/.Hello,
My site uses Japanese by default.
I wanted to change the permalink of the URL, I asked a question this time.
It is now like …/t/topic/16(article number), and is it possible to make it like ../16?
Or is it possible to make …/t/16?
Currently it is not possible remove the slug entirely.
So, I can not change the topic page URL to …/t/(topic_id) and …/(topic_id), right?
Is it impossible to make the topic URL of my site be …/t/(title_name), like the topic URL ../t/(title_name) of meta.discourse.org?
Yes.
…/t/(title_name)/(topic_id) is possible by changing the slug generation method site setting to “encoded”. Then the Japanese characters will be included in the topic slugs.
Thank you @vinothkannans
There are two questions about the directory when selecting ascii in the slug generation method.
One thing is about not displaying any content on .../t/. Is it possible to display a list of topics here?
The second is about displaying randomly selected topic page when opening .../t/topic/. Is it possible to display a list of topics here?
(Also, I do not know why ../t/topic/ is generated again in the hierarchy below .../t/.