fix(settings): omit leading/trailing and consecuting dots in noralizePagePath

This commit is contained in:
2026-07-28 20:10:20 +02:00
parent c2402f9360
commit d3f3ef37ed
2 changed files with 30 additions and 4 deletions
@@ -17,7 +17,10 @@ limitations under the License.
import { useRouter } from 'vue-router';
const normalizePagePath = function normalizePagePath (path) {
return path.replaceAll('.', '/');
return path
.replace(/\.+/g, '.')
.replace(/^\.+|\.+$/g, '')
.replaceAll('.', '/');
};
export const useSettingsPage = function useSettingsPage () {