Don't encode unknown segment values

This commit is contained in:
RMidhunSuresh 2022-11-25 11:20:47 +05:30
parent e9053372d6
commit 80080074fa
No known key found for this signature in database

View File

@ -185,7 +185,7 @@ export function parseUrlPath(urlPath: string, currentNavPath: Path<SegmentType>,
segments.push(new Segment("sso", loginToken)); segments.push(new Segment("sso", loginToken));
} else { } else {
// might be undefined, which will be turned into true by Segment // might be undefined, which will be turned into true by Segment
const value = decodeURIComponent(iterator.next().value); const value = iterator.next().value;
segments.push(new Segment(type, value)); segments.push(new Segment(type, value));
} }
} }