Skip to content

Commit 80c9ca4

Browse files
committed
debug: log normalizing path
1 parent 0673de6 commit 80c9ca4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/i18n/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export function useTranslations(lang?: Lang) {
1818
};
1919
}
2020

21-
function normalizePath(path: string): string {
21+
function normalizePath(path = '/'): string {
22+
console.log({ path });
2223
if (!path || path === '/') return '/';
2324

2425
return path.replace(/\/$/, '');

0 commit comments

Comments
 (0)