fix: .fsRoutes() pattern argument not working (#3571)

Fixes https://github.com/denoland/fresh/issues/3566
This commit is contained in:
Marvin Hagemeister
2025-10-23 13:05:11 +02:00
committed by GitHub
parent 07f74ffa4a
commit 3681fb1c84
2 changed files with 25 additions and 2 deletions
+2 -1
View File
@@ -357,7 +357,8 @@ function applyCommandsInner<State>(
}
case CommandType.FsRoute: {
const items = cmd.getItems();
applyCommandsInner(root, router, items, basePath);
const base = mergePath(basePath, cmd.pattern, true);
applyCommandsInner(root, router, items, base);
break;
}
default: