Use wb.pageUrlParts as it already has the cached URL parts for the page.