A user zyouchi reports an issue where sharing a forum topic with a Japanese-encoded slug on Twitter fails because the URL isn’t recognized as a valid link. gerhard clarifies that Twitter likely doesn’t support such URLs, prompting discussion on whether Discourse should automatically encode and shorten the URL for social media sharing. codinghorror questions if it’s Twitter’s bug, but zyouchi explains it’s due to Twitter treating the encoded URL as plain text. riking suggests URL encoding before sharing, which zyouchi confirms is needed, noting similar issues with Chinese and Korean URLs. Mittineague clarifies this is a feature request, not a bug, and will be resolved via a pull request. misaka4e21 confirms the issue and links to a fix in a pull request 6257.
Hello, I would like to ask you about Slug 's Japanese response.
If I choose encoding with slug generation method, the URL will be in Japanese, but when trying to tweet from the site share button, url will not be recognized correctly.
Regarding the choice of encoding with slug generation method, I think that discourse needs to encode url and shorten it in terms of posting function to SNS.