Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by Noman 4 days, 16 hours ago.

Assisted by: Noman.

Author Posts
October 7, 2025 at 8:29 am #17462572

olgaS-13

Background of the issue:
I am trying to translate a URL attribute for a Divi Pixel Carousel module. The URL I am working with is: hidden link. The issue can be seen on this page: hidden link. I expected the translated URL to be: hidden link.

Symptoms:
Instead of the expected URL, I got: hidden link. All & characters have been changed to &. This change causes the links of the image carousel at the top of the page to not work properly, as the query parameters are partially ignored.

Questions:
How can I prevent & from being converted to & in translated URLs?
Why are the query parameters being ignored in the Divi Pixel Carousel module?

October 8, 2025 at 6:52 am #17465879

olgaS-13

I set up the sandbox with a minimal example.

Sandbox:
hidden link

For your convenience, the default language is English in the sandbox project.

I setup the "Sample Page" with the widget (or module in DIVI terminology) in question.

The page in default language is here:
hidden link

If you search the page's source for "bellfood" you'll find the following correct snippet:

<script type="text/javascript">
				var et_link_options_data = [{"class":"difl_imagecarouselitem_0","url":"https:\/\/career.bellfoodgroup.com\/en\/vacancies?job_filter_group%5B%5D=2378&location%5B%5D=5223+Pfaffst%C3%A4tt&category_field%5B%5D=1185&dateSort=desc","target":"_blank"},{"class":"difl_imagecarouselitem_1","url":"https:\/\/career.bellfoodgroup.com\/en\/vacancies?job_filter_group%5B%5D=2378&location%5B%5D=5223+Pfaffst%C3%A4tt&category_field%5B%5D=2365&dateSort=desc","target":"_blank"}];
			</script>

(see snippet-default image)

I translated the page in the usual way, using the advanced translation editor:

WPML -> Translation Dashboard

Select page and "Translate myself"

WPML -> Translations

Translate page

Search for "https"(without the quotes) to see the links.

The translated page is than available here:
hidden link

If you search the translated page's source for "bellfood" you'll find the following INCORRECT snippet:

<script type="text/javascript">
				var et_link_options_data = [{"class":"difl_imagecarouselitem_0","url":"https:\/\/career.bellfoodgroup.com\/de\/offene-stellen?job_filter_group%5B%5D=2378&location%5B%5D=5223+Pfaffst%C3%A4tt&category_field%5B%5D=1185&dateSort=desc","target":"_blank"},{"class":"difl_imagecarouselitem_1","url":"https:\/\/career.bellfoodgroup.com\/de\/offene-stellen?job_filter_group%5B%5D=2378&location%5B%5D=5223+Pfaffst%C3%A4tt&category_field%5B%5D=2365&dateSort=desc","target":"_blank"}];
			</script>

(see snippet-translated image)

As you can see, the & characters have been changed to HTML entities, which does not work in this context.

The result is that the query parameters are not passed correctly to the job portal page of the customer.

If you click on an image of the original language, you'll see a page with exactly one (1) company, location and category selected.

In contrast, on the translated page, you end up with a page where only the company is selected, but the location and category are NOT selected.

Using the WordPress editor for the pages in the live project would be difficult because it contains a lot of global modules that are shared between pages.

Translating these (again) with the page in question would likely lead to conflicts or inconsistencies.

Also, the WordPress editor is quite cumbersome to use for translators.

Thanks and best regards!

snippet-translated.png
snippet-default.png
October 8, 2025 at 6:55 am #17465909

olgaS-13

Note:

Please refer to the provided images; the code snippets do not show the added characters since the browser unescapes them.

October 8, 2025 at 6:01 pm #17468526

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the detailed setup and for reproducing the issue so clearly.

The behavior isn’t actually caused by WPML itself, but by how the DiviFlash plugin handles URLs coming from WPML’s Translation Editor.

WPML’s Advanced Translation Editor automatically encodes special characters (for example, & → &amp) to ensure valid HTML. This is standard and expected behavior across translation systems.

However, the DiviFlash carousel doesn’t decode those entities when rendering the translated URL, so instead of interpreting &amp as &, it keeps it as text, which breaks the query string.

Since DiviFlash isn’t listed as officially compatible with WPML, I’d recommend contacting their developers and sharing this detail. Once the module properly decodes encoded URLs, the links will work fine with WPML’s Translation Editor.

Thank you for your cooperation

October 9, 2025 at 7:47 am #17469671

olgaS-13

Thanks for the information.

I forwarded it together with the sandbox links to the DiviFlash support.

I hope they can (and will) fix the issue in a timely manner.

I'd ask you to keep up the sandbox for a couple days so they can investigate the issue.

While I understand your position, it's frustrating for us as we even asked DIVI support what the recommended translation plugin was for DIVI websites.

Of course DiviFlash is an add-on product, so we are somewhat left between the chairs.

October 9, 2025 at 8:21 am #17469842

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for forwarding the details to DiviFlash and for the update. I completely understand your frustration, it’s never ideal to be caught between different products.

No worries, the sandbox will stay active for 6 days after the last login, so their team should have enough time to investigate the issue.

Thank you

October 17, 2025 at 7:02 am #17492920

olgaS-13

Hi,

I contacted DiviFlash support about the issue.

It took some time to get the issue explained, but finally they were able to reproduce and investigate it.

Unfortunately, they were not able to provide a solution because based on their investigation it seems to be a general problem in translating URL attributes in DIVI.

They created an example using the standard DIVI Image module showing the same problem:

In English: hidden link
In German: hidden link

The translation editor content looks fine to me (see screenshot df-test-translation.png)

This is the full text of the relevant message:

"""

It seems that the URL is unable to parse the job filter, location, and category parameters after translation in the front end. Both the DiviFlash Image Carousel module and
Divi’s default modules behave the same way in this case. To verify this, we also tested the behavior using Divi’s default Image module and observed the same issue.
This indicates that the problem is not specific to our module but rather a general behavior in Divi modules.

For better clarification, we created a test page and added both the DiviFlash Image Carousel and Divi’s default Image module using the same link settings.
Both modules behaved identically in our tests. You can check the results on the following pages:

In English: hidden link
In German: hidden link

Let us know if you have any other questions.

"""

Now, how do I proceed to get the link properly translated?

Thanks in advance!

df-test-translation.png
October 19, 2025 at 5:05 pm #17497104

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sorry for the delay, I was off during the weekend (Friday–Saturday). Thank you for the detailed update and for sharing DiviFlash’s findings. That’s very helpful.

Since the same behavior occurs with the default Divi Image module, it looks like the issue comes from how Divi handles encoded URLs when content is translated through the Advanced Translation Editor.

I’ll go ahead and escalate this case to our 2nd tier team so they can review it further and check if there’s a possible workaround or if there are any other suggestions.

Thank you

October 21, 2025 at 7:22 pm #17504471

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

I have escalated this issue to our 2nd Tier Support for further review and will get back to you once I hear back about it.

Thank you for your cooperation and patience.