Page 1 of 1

[SOLVED] Product description links in a multi-store environment

Posted: Fri Nov 09, 2018 1:46 pm
by rangitotogirl
I feel like I'm missing something which is blindingly obvious in my multi-store.

I have two products that are common across two stores. When I'm creating the product description I want to insert a link into my description text which takes me to a subdirectory on the website I am on.

For example if I am browsing store abc.com the link should take me to:

www.abc.com/instructions

and if I'm browsing store xyz.com the link should take me to:

www.xyz.com/instructions

In other words the sub-directory should stay the same, but the domain name should change. I am assuming that there must be a wildcard I could use to do this? Can someone tell me what it should be? If I try using /instructions it takes me away from the site completely.

Re: Product description links in a multi-store environment

Posted: Fri Nov 09, 2018 2:55 pm
by OSWorX
That should work if you use a relative and not an absolute URL.

Re: Product description links in a multi-store environment

Posted: Fri Nov 09, 2018 4:20 pm
by rangitotogirl
Thanks, that was helpful. The issue that I had was when using the link button and putting the link in via the user interface, it was creating an absolute URL. If you edit the source instead it works correctly.

If anyone is wondering how to do this on the product description page click the icon that looks like this. </>

Next look for the snippet of code that looks like this: href="https://instructions" and chance it to href="/instructions"

Appreciate your help.

Re: [SOLVED] Product description links in a multi-store environment

Posted: Fri Nov 09, 2018 4:56 pm
by OSWorX
Glad to help.