DEV: Use Discourse.getURL for creating URL

follow-up to ccb48bef75
This commit is contained in:
Gerhard Schlager 2019-03-05 17:52:18 +01:00
parent 190b19f3c2
commit 671cec4bd2

View File

@ -9,11 +9,12 @@ export default buildCategoryPanel("general", {
canSelectParentCategory: Ember.computed.not( canSelectParentCategory: Ember.computed.not(
"category.isUncategorizedCategory" "category.isUncategorizedCategory"
), ),
uncategorizedSiteSettingLink: uncategorizedSiteSettingLink: Discourse.getURL(
Discourse.BaseUri + "/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"
"/admin/site_settings/category/all_results?filter=allow_uncategorized_topics", ),
customizeTextContentLink: customizeTextContentLink: Discourse.getURL(
Discourse.BaseUri + "/admin/customize/site_texts?q=uncategorized", "/admin/customize/site_texts?q=uncategorized"
),
// background colors are available as a pipe-separated string // background colors are available as a pipe-separated string
@computed @computed