feat(settings): filter characters that would cause a broken URL from settings page path

This commit is contained in:
jakob.scheid committed 2026-07-28 20:10:21 +02:00
1 parent f7f4de8341
commit c5a16d2797
2 files changed
+13 -2

No files matched your search

@@ -20,7 +20,10 @@ export const normalizePagePath = function normalizePagePath (path) {
return path
.replace(/\.+/g, '.')
.replace(/^\.+|\.+$/g, '')
.split('.');
.split('.')
.map(
(segment) => segment.replace(/[^a-zA-Z0-9-]/g, '')
);
};
export const useSettingsPage = function useSettingsPage () {