Various small bug fixes
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-06-08 22:04:36 +03:00
parent 9c7d15fd88
commit 6a3ec6a654
24 changed files with 400 additions and 27 deletions

View File

@@ -51,7 +51,7 @@ export function gearTypeToInitial(gearType: GearType) {
export function pathnameFromPotentialURL(maybeUrl: string) {
try {
return new URL(maybeUrl).pathname.replace("/", "");
return new URL(maybeUrl).pathname.replace(/^\/+|\/+$/g, "");
} catch {
return maybeUrl;
}