Skip to content

Commit 907a84a

Browse files
authored
Prerender subpaths (#373)
1 parent 814ac8f commit 907a84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/getRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { firestore } from './utils/db'
55
* Converts an id into a path.
66
*/
77
function getPath(id: string) {
8-
return id.replace(/::/g, '/').replace('.md', '')
8+
return id.replace(/::/, '/').replace('.md', '')
99
}
1010

1111
/**

0 commit comments

Comments
 (0)