diff --git a/framework/core/src/Core.php b/framework/core/src/Core.php
index 63b0cd19d..4985b756b 100644
--- a/framework/core/src/Core.php
+++ b/framework/core/src/Core.php
@@ -33,10 +33,10 @@ class Core
 
     public static function url($name = null)
     {
-        $url = static::config('url');
+        $url = app('flarum.config')['url'];
 
         if ($name) {
-            $url .= '/' . static::config("paths.$name");
+            $url .= '/' . app('flarum.config')['paths'][$name];
         }
 
         return $url;