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(
"category.isUncategorizedCategory"
),
uncategorizedSiteSettingLink:
Discourse.BaseUri +
"/admin/site_settings/category/all_results?filter=allow_uncategorized_topics",
customizeTextContentLink:
Discourse.BaseUri + "/admin/customize/site_texts?q=uncategorized",
uncategorizedSiteSettingLink: Discourse.getURL(
"/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"
),
customizeTextContentLink: Discourse.getURL(
"/admin/customize/site_texts?q=uncategorized"
),
// background colors are available as a pipe-separated string
@computed