Customer-account.order.page.render not working

Got the answer

<Button
kind=“primary”
to={extension:cancel-page-ui/customer-account.order.page.render/${orderNumber}}
>
Cancel

Issue with full page extension with order context - Extensions - Shopify Developer Community Forums