diff --git a/module/api/ui/index.html.php b/module/api/ui/index.html.php
index 945709aa4b..0de9ac54e9 100644
--- a/module/api/ui/index.html.php
+++ b/module/api/ui/index.html.php
@@ -109,7 +109,7 @@ $docContent = panel
div
(
setClass('detail base-url'),
- $lang->api->baseUrl . $delimiter . $lib->baseUrl
+ $lang->api->baseUrl . $delimiter . ($lib ? $lib->baseUrl : '')
),
h::hr(setClass('mb-4')),
div