How to get a product link for Qr-code?

Hi! I am working on creating a plugin for generating Qr-code for product. The product link must be encrypted in this qr-code. The block with qr will be shown on the product page in the admin panel. The qr-code image changes dynamically depending on the product.
To generate qr-code I use qrcode-generator library, js version.
Initially, I thought that there is something like product.url in the Shopware 6 and from it I can get a link, but there is no such value.
I found ways to display a product link on the site ( {{ seoUrl(‚frontend.detail.page‘, { productId: page.product.id }) }} ), but this option does not work for the admin panel.
I would be grateful for your advice!