diff --git a/src/Link.js b/src/Link.js index 9621e02477d0f14d1a88709d578d2b6f81eb9081..cb7653f29d8e64ae24a1c63bfa4d606916cd4ad5 100644 --- a/src/Link.js +++ b/src/Link.js @@ -74,9 +74,9 @@ export const LinkKind = createEnum( export function tryFixUrl(fragment) { const attempts = []; const afterHash = fragment.substring(fragment.startsWith("#/") ? 2 : 1); - attempts.push('#/@' + afterHash); // #room => #/@room - attempts.push('#/#' + afterHash); // #@room => #/@room - attempts.push('#/!' + afterHash); // #@room => #/@room + attempts.push('#/@' + afterHash); + attempts.push('#/#' + afterHash); + attempts.push('#/!' + afterHash); const validAttempts = []; for (const attempt of [...new Set(attempts)]) {