How to add a clickable account link in a product metafield?

Hello, I hope you are all well.

I have a question about adding an href in Json as I have been searching for hours and can not figure it out lol.

My product page is customised and I have a block which is populated by a metafield on the product which allows me to give specific info. I would like to put a clickable link here to direct the customer to their account page but this is what happens

I am trying to put in https://www.mumsmakery.co.uk/account to direct people to their account page I use

My](https://www.mumsmakery.co.uk/account.%E2%80%9D%3EMy) PDF Downloads Tab. but the link on the website does this…

https://www.mumsmakery.co.uk/products/https://www.mumsmakery.co.uk/account which when I copy and paste it here come out as this https://www.mumsmakery.co.uk/products/%E2%80%9Chttps://www.mumsmakery.co.uk/account%E2%80%9D

I am a bit confused lol .. if anyone can help me out with what I need to type in I would be very grateful.

Cheers

Samantha

Try using the relative URL instead of the absolute

 My PDF Downloads Tab.
1 Like

Hi,

Thank you for replying so quickly.

I did try that .. it adds the /account on to the end but doesn’t remove the /products

https://www.mumsmakery.co.uk/products/“/account”

is what I end up with

https://www.mumsmakery.co.uk/products/%E2%80%9C/account%E2%80%9D

.. if you have any other ideas please shoot them my way :slightly_smiling_face:

Cheers

Samantha

Oh my I actually think I figured it out (this almost never happens)

I looked at what you said and fiddled a little and it seems this works

My PDF Downloads Tab.

I had to remove two of the "

but the link works! thank you @kajderuyter

1 Like