Hi everyone,
I need your support with the following issue.
I have an URL (e.g. https://www.domain.com/blogpost) and I want to replace this URL with the corresponding subdomain (e.g. https://www. en. domain.com/blogpost) as soon as someone hits a button. (The subdomain is the english version of my original website)
First I tried…
import wixLocation from 'wix-location';
let url = 'en.' + wixLocation.url
…but than the prefix ‘en.’ appears in front of https:// and not after www.
Do you have any suggestions what I need to change so that I get the right result?
Thanks for your help!
Alex