Facing Page with redirect & Alternate page with proper canonical tag issue

referring URL is different canonical URL is different, landing page URL is getting longer.
please suggest solutions

I have seen URLs like this generated from page sections that suggest products. Do you have any of those on your site? Check the URLs those generate

Screenshot 2024-03-01 103226.png

I have products with variants, the system submits the product URL but when the page opens and loads the URL changes automatically with varients ID.
canonical is https://www.blueapplejewelryco.com/collections/cz-rings/products/round-cubic-zirconia-v-midi-chevron-ring-925-sterling-silver-bar10074-1 and the product but it automatically changes to variants https://www.blueapplejewelryco.com/collections/cz-rings/products/round-cubic-zirconia-v-midi-chevron-ring-925-sterling-silver-bar10074-1?variant=42342621675703

and I want to not change the URL and Run further processes in backend, suggest a solution