How can I link color swatches to individual products on my ecommerce site?

Hi,

So we have an ecommerce where we have “the same” product in different colors.

However we have chosen to add each color of a product as an individual product, (we didnt add them as variants under a parent product).

Now we want to show each variant of the product on the same product page but with color swatches.

So if they click on “brown” it will be linked to the brown version of that product, with corresponding url.

How can we do this?

I know that the standard is probably to add a parent product and add each color as a variant under that product. But we want to keep the products separate by color.

Any help is appreciated!