תָּרְגּוּם שְׁלָם ל-Sinhala DevaLai Sinhala slug ל-Unicode?

סיכום מבוסס בינה מלאכותית

In a Support discussion titled “සිංහල දෙමල සිංහල slug for Unicode?”, Sahan_Sanjeewa raises concerns about using Sinhala Unicode in slugs for SEO and user experience, noting that current slugs only show numbers or ASCII. pfaffman explains slugs traditionally support only ASCII, offering a transliterated version. Sahan_Sanjeewa counters with an example from geek.lk where Sinhala Unicode appears in URLs successfully. xrav3nz points to a site setting — “encoded” — that allows non-ASCII slugs, but warns of an unresolved infinite-redirect bug when browsers percent-encode non-ASCII characters and Discourse doesn’t decode them. jomaxro confirms the bug still exists, attributing it to a Ruby/Rails issue that won’t be fixed until Discourse upgrades from Rails 4 to 5. The community acknowledges the desire for Unicode slugs but highlights technical limitations and risks.

දිවයිනේ දැවැන්තම සාහිත්‍ය මංගල්‍යය ලෙසින් සැලකෙන කොළඹ ජාත්‍යන්තර පොත් ප්‍රදර්ශනය මෙවරත් සැප්තැම්බර් 15වනදා සිට 24වනදා දක්වා කොළඹ බණ්ඩාරනායක සම්මන්ත්‍රණ ශාලා පරිශ්‍රයේ දී පැවැත්වීමට කටයුතු යොදා තිබේ. (සිකුරාදා සහ සෙනසුරාදා යන දිනවල උදෑසන 9 සිට රාත‍්‍රි 10 දක්වා ප‍්‍රදර්ශනය විවෘතව තැබෙනවා.

Check this discussions Slug :frowning: its only showing some numbers :smiley:

can i make it unicode friendly ?

Slugs can contain only plain old ascii, not characters from other character sets.

Google translate suggests the below, which could be in a slug.

divayinē dævæntama sāhitya maṁgalyaya lesin sælakena koḷam̆ba jātyantara pot pradarśanaya mevarat

This is sinhala unicode. if i launch my forum with this script :wink: my members will always use sinhala unicode..

then urls should have sinhala unicodes… if not google will not understand it :frowning: bad for SEO

Look At this Example - http://geek.lk/discussion/657/ආධුනිකයින්-සදහා-සිංහල-වෙබ්-නිර්මාණ-පාඩම්-මාලාව

It’s sinhala unicode title and it shows in slugs :smiley:

There is a site setting for this:

If you set it to encoded, slugs will contain non-ASCII characters.


Note

There was (is?) a infinite-redirect problem due to having non-ASCII characters in the topic slug. I don’t think this has been fixed yet.

Yep, is. The infinite-redirect issue is not been resolved. It is a Ruby/Rails issue, so we won’t get it resolved until we move from Rails 4 to 5.