Typing this:

[[~[[*id]]? &scheme=`full`]]

Will output:


If you break down the expression, you'll see this approach is a combination of:

[[~12345]] => returns the page URL for resource 12345


[[*id]] => normally returns the current page's resource ID

By nesting these, we can return the page URL for the resource ID of the current page.