Skip to content

Commit 58bc7fd

Browse files
committed
double hyphens don't work using underscores
1 parent 8cff221 commit 58bc7fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/endpoints/pagesFetchByUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function parseXWalkPageFetchUrl(url: string): { siteId: string; pagePath: string
129129
// Site ID is the segment immediately after 'xwalkpages'
130130
const siteIdSegment = pathSegments[xwalkPageIndex + 1];
131131
// Extract the UUID part, expected after the last colon if present, or the whole segment
132-
const siteIdParts = siteIdSegment.split('--');
132+
const siteIdParts = siteIdSegment.split('_');
133133
const siteId = siteIdParts.length > 0 ? siteIdParts[siteIdParts.length - 1] : ''; // Get the last part
134134

135135
// Validate UUID format for the extracted siteId

0 commit comments

Comments
 (0)