Issue with Softr and Weglot subdirectory-based integration

Dear Softr community,

I’m reaching out to you as I’m experiencing an issue while trying to create a multilingual website with Weglot. (I chose Weglot over other solutions because it is the recommended solution in the Softr documentation, see here: Weglot)

Weglot offers three kinds of integration:

  • A JavaScript integration
  • A subdomain-based integration
  • A subdirectory-based integration

I eliminated the JavaScript integration right away, as it does not allow Google (and other search engines) to index the translated pages, and started with the subdomain-based integration.

However, since I also use iubenda and intercom (two solutions for which Softr offers integration), it became problematic because these solutions are linked to the website’s domain ( and therefore didn’t work on subdomains (,, etc.)

So I switches to the subdirectory-based integration, which allowed iubenda and intercom to continue functioning perfectly on the subdirectories (,, etc.)

However, when I use the Weglot country switcher to switch the visited page from English to any translated language (French and Spanish), as soon as I click on a link (no matter what the link is), I land on the destination page with the country switcher reverted back to English. It is obviously not feasible to ask visitors of the website to use the country switcher again, on each visited page, to switch the page back to French or Spanish.

So I reached out to Weglot for assistance in finding a solution to ensure the correct functioning of the country switcher and seamless language transition across pages. They informed me that the issue lies with the redirections made by specific kinds of links, such as “/sign-in” and “/sign-up”. So, to resolve this issue, they recommended adding a “/” at the end of these URLs, making them “/sign-in/” and “/sign-up/”.

I then turned to Softr support to inquire about the procedure. However, they informed me that it is not possible because having slashes at the end of URLs can cause duplicates when indexing pages (which is absolutely correct, see: Aplicar ou não a barra  |  Blog da Central da Pesquisa Google  |  Google for Developers).

So, I reached out to Weglot support again, and they asked me to update the “/sign-in”, “/sign-up”, etc. links (see screenshot) with “”, “”, etc. (i.e., adding “” at the beginning of each of these links), as Weglot “translates” every href link in the translated pages’ source code by adding the /fr/ or /es/ in those.

And, when the link have not the whole page’s classic structure “” in the source code, Weglot has trouble detecting it to add the /fr/ or /es/, so they explained to me that this is very likely why visitors on translated pages are redirected in English on the website.

According to Weglot, this behavior is usually solved by changing the href structure from “/sign-up” to “/sign-up/” or “”. But, Softr does not allow such manipulation (see screenshot).

CleanShot 2023-06-14 at 16.27.52

So, I find myself constantly bouncing between Weglot and Softr support, and they keep passing the issue back and forth.

Nevertheless, I have been careful to only use solutions recommended in Softr documentation or for which Softr offers integration. Therefore, I don’t understand how such a situation can occur, especially when I exclusively use solutions recommended by Softr. So, without a solution, I’m turning to you in the hope of finally resolving this problem :slight_smile:

Thanks you in advance for your help!

Hey Yann!
I get the frustration you’re experiencing with the lang. transition issue btween Weglot and Softr.
I want to suggest you try:

  • Check if Weglot offers any custom settings or options to handle specific URLs, particularly those causing redirection issues.
  • Reach out to Softr support again, explaining the recommendations provided by Weglot and the specific limitations you’ve encountered. They may have alternative suggestions or workarounds to address the conflict.

Remember to provide detailed info about ur setup, including the specific URLs and integration points, to help the support teams understand ur situation better :thinking:

Hey William,

For information, as recommended, I reached out to Softr support again, explaining the recommendations provided by Weglot and the specific limitations I’ve encountered.

Unfortunately, they do not have any alternative suggestions or workarounds to address the conflict:

“Hi Yann, I am sorry that there is not much we could do at this point so I will close the conversation but feel free to reach us back should you have any questions.”

Hey @Yann I will be able to dive a bit into this later today and see what I can suggest. Might be we are even able to add the / via custom code and Weglot will pick it up ?

1 Like

Hey @artur,

Thanks a lot in advance!

For your information, Weglot support has tried a workaround on some pages, but it needs to be done on every single URL, which is time-consuming, prone to errors, and not scalable (especially with future creation of new pages).

Here’s what they did:

“The code I added can only be added on our side and I had to add a specific code for each URL.
Basically, the code is replacing a URL with another depending on the language.
So for example, I targeted “/contact” and decided that when the language is “fr”, what I targeted is replaced with “/fr/contact/”.
Usually, we don’t need to do that, to have the URLs translated we need the “/” at the end and what would be the best would be to have the full URL.
That is to say, having instead of “/faq”.
That should do the trick.”

Hi @artur,

Just following up to make sure this thread didn’t get buried.



Hi @artur,

I hope you’re well!

Since this is time-sensitive (as we’re postponing our launch because of this issue), I thought I’d reach out again.

Hi @artur,

I hope you’re well!

As it’s been almost three months that you told me:

“I will be able to dive a bit into this later today and see what I can suggest.”

I was wondering if I can still hope to receive a response from you on this matter, please?

I look forward to hearing your thoughts!