1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 03:59:54 +02:00

Default path to be considered home

This commit is contained in:
Kamran Ahmed
2025-04-04 11:38:18 +01:00
parent d8466634a1
commit dc2142dde0

View File

@@ -7,7 +7,7 @@ export function urlToId(url: string) {
.replace(/\/$/, '')
.replace(/^\//, '')
.replace(/[^a-zA-Z0-9]/g, '-')
.toLowerCase();
.toLowerCase() || 'home';
}
const LAST_PATH_KEY = 'lastPage';