Henrik Böving 2023-02-16 18:14:40 +01:00
parent 162de994c2
commit 54cf445e12
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ const queryParams = new Map(
);
const fragmentPaths = fragment?.split(LEAN_FRIENDLY_SLASH_SEPARATOR) ?? [];
const pattern = queryParams.get("pattern") ?? fragmentPaths[1]; // if first fail then second, may be undefined
const encodedPattern = queryParams.get("pattern") ?? fragmentPaths[1]; // if first fail then second, may be undefined
const pattern = decodeURIComponent(encodedPattern);
const strict = (queryParams.get("strict") ?? "true") === "true"; // default to true
const view = fragmentPaths[0];