mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-02 05:42:41 +02:00
Default path to be considered home
This commit is contained in:
@@ -7,7 +7,7 @@ export function urlToId(url: string) {
|
|||||||
.replace(/\/$/, '')
|
.replace(/\/$/, '')
|
||||||
.replace(/^\//, '')
|
.replace(/^\//, '')
|
||||||
.replace(/[^a-zA-Z0-9]/g, '-')
|
.replace(/[^a-zA-Z0-9]/g, '-')
|
||||||
.toLowerCase();
|
.toLowerCase() || 'home';
|
||||||
}
|
}
|
||||||
|
|
||||||
const LAST_PATH_KEY = 'lastPage';
|
const LAST_PATH_KEY = 'lastPage';
|
||||||
|
Reference in New Issue
Block a user