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

This commit is contained in:
2026-07-28 20:10:21 +02:00
parent f7f4de8341
commit c5a16d2797
2 changed files with 13 additions and 2 deletions
@@ -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 () {