mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Support non-english topic titles
This commit is contained in:
@@ -25,7 +25,9 @@ Discourse.Topic = Discourse.Model.extend Discourse.Presence,
|
||||
).property('categoryName', 'categories')
|
||||
|
||||
url: (->
|
||||
"/t/#{@get('slug')}/#{@get('id')}"
|
||||
slug = @get('slug')
|
||||
slug = "topic" if slug.isBlank()
|
||||
"/t/#{slug}/#{@get('id')}"
|
||||
).property('id', 'slug')
|
||||
|
||||
# Helper to build a Url with a post number
|
||||
|
||||
Reference in New Issue
Block a user