Hi men wondering if you're able to assist me?

I have designed a custom translation function on the WordPress template and want to rewrite the Hyperlink to pre-append the word what code based on what been selected for instance.

the initial URL would look something similar to


Should you choose FR and also the URL would rewrite the Hyperlink to


But nonetheless function and display exactly the same content because the default URL.

I'd like this to dedicate yourself pages in addition to publish.

Thanks Matt