Changing the URL reference in the button for a different language version

Hi,

Is it possible to set a different URL link in the button when changing the language version, if I use Weglot?

Does anyone know a proven method or have a custom code?

I will be grateful for your help.

No one? :frowning: I still have no idea…

After a week of thinking, I had an idea how to do this. Very simple. I created two buttons EN and PL. I set the on click animation on the language trigger, in which I turn the display off and on depending on the language. Of course, each button has a different url to which it refers.

I am writing if someone had a similar problem and was looking for an answer :slight_smile:

1 Like

I ran into the same issue. Although inventive, I couldn’t rely on the language switcher trigger as I have ads linking directly to the translated subdomain. Turns out Weglot have this covered with the ability to translate external links. How to translate an external link? - Help Center

There are other Tools that can help you with that.

I personally use GeoTargetly (https://geotargetly.com/)

Hope this helps

1 Like