diff --git a/node_modules/@bony_chops/docusaurus-og/lib/server/docs.plugin.js b/node_modules/@bony_chops/docusaurus-og/lib/server/docs.plugin.js
index b308c02..e0d291a 100644
--- a/node_modules/@bony_chops/docusaurus-og/lib/server/docs.plugin.js
+++ b/node_modules/@bony_chops/docusaurus-og/lib/server/docs.plugin.js
@@ -93,7 +93,16 @@ class DocsPlugin {
             await document.write();
         }
     };
-    getHtmlPath = (doc) => doc.metadata?.permalink &&
-        path.join(this.context.outDir, doc.metadata.permalink, 'index.html');
+    getHtmlPath = (doc) => {
+        if(doc.metadata?.permalink !== undefined) {
+            let relativePerma = doc.metadata.permalink;
+            if(this.context.baseUrl !== undefined && this.context.baseUrl !== '/') {
+               relativePerma = path.join('/', relativePerma.replace(this.context.baseUrl, ''));
+            }
+            const p = path.join(this.context.outDir, relativePerma, 'index.html');
+            return p;
+        }
+        return undefined;
+    }
 }
 exports.DocsPlugin = DocsPlugin;
diff --git a/node_modules/@bony_chops/docusaurus-og/lib/server/pages.plugin.js b/node_modules/@bony_chops/docusaurus-og/lib/server/pages.plugin.js
index 4676f56..03f03a5 100644
--- a/node_modules/@bony_chops/docusaurus-og/lib/server/pages.plugin.js
+++ b/node_modules/@bony_chops/docusaurus-og/lib/server/pages.plugin.js
@@ -101,6 +101,13 @@ class PagesPlugin {
             await document.write();
         }
     };
-    getHtmlPath = (permalink) => path.join(this.context.outDir, permalink, 'index.html');
+    getHtmlPath = (permalink) => {
+        let relativePerma = permalink;
+        if(this.context.baseUrl !== undefined && this.context.baseUrl !== '/') {
+            relativePerma = path.join('/', relativePerma.replace(this.context.baseUrl, ''));
+        }
+        const p = path.join(this.context.outDir, relativePerma, 'index.html');
+        return p;
+    }
 }
 exports.PagesPlugin = PagesPlugin;
