Dynamic Page Identifier

I’d like to locate the unique dynamic page identifier that’s provided by Wix to add into my custom css/html code.

My custom code is a comment section under pages (not blog posts), and when URL or ID are not defined, the custom code will create duplicate threads.

Within my custom code snipped I need to replace “false” with the identifier provided by Wix:

{ url: false,
id: false,
 };

I tried adding the following into the Velo editor:

import wixLocation from 'wix-location';
let prefix = wixLocation.prefix;

and then changing my code snippet in the custom code settings dashboard to

{ url: false,
id: prefix,
 };

For more reference, these variables should be defined by using the Wix platform’s dynamic values. For example, WordPress plugin defines these variables by default using the following PHP values:

{ url: ‘<?php echo get_permalink(); ?>’;
id: ‘<?php echo dsq_identifier_for_post($post); ?>’;
};

Each platform provides these variables, and I’d like to know how Wix defines them. How should I define the URL and ID?

Thanks!