diff --git a/ext/chatbox/main.php b/ext/chatbox/main.php
index fc48cac1..07fb2480 100644
--- a/ext/chatbox/main.php
+++ b/ext/chatbox/main.php
@@ -14,7 +14,7 @@ class Chatbox extends Extension {
// Adds header to enable chatbox
$root = get_base_href();
- $yPath = "$root/ext/chatbox/";
+ $yPath = make_http("") . "/ext/chatbox/";
$page->add_html_header("