fix: use matched[1] for route capture group to prevent duplicated path in .pine fetch

This commit is contained in:
Miha Kralj
2026-03-11 18:41:17 -07:00
parent b048786547
commit 56b86bebfb
+1 -1
View File
@@ -223,7 +223,7 @@
// Route handler for .pine files — fetch and wrap in markdown code fence
routes: {
'/(.+\\.pine)': function(route, matched, next) {
var pinePath = matched;
var pinePath = matched[1];
var absUrl = new URL(pinePath, document.baseURI).href;
fetch(absUrl).then(function(r) {
if (!r.ok) throw new Error(r.status);