DEV: Use Discourse.getURL for creating URL

DEV: Use Discourse.getURL for creating URL

follow-up to ccb48bef7554ef4d6133d87472826e5f09cb1018

diff --git a/app/assets/javascripts/discourse/components/edit-category-general.js.es6 b/app/assets/javascripts/discourse/components/edit-category-general.js.es6
index aa4b442..e5faf9b 100644
--- a/app/assets/javascripts/discourse/components/edit-category-general.js.es6
+++ b/app/assets/javascripts/discourse/components/edit-category-general.js.es6
@@ -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

GitHub sha: 671cec4b

1 Like