SOLVED: Search element, wrong action-attribute for second language, and Polylang

Browser: Chrome 119
OS: Windows
URL: Security printing manufacturer | Sandéns Security Printing (click on Search at top right)

I use the Search element in BB. I have two languages (Swedish and English), and I am using Polylang. When I click on the Search button in the English header, writes a search (e.g. “bingo”) and press Enter, it gives me the Swedish results, not as expected the English results.

The reason for this is that the action attribut is the Swedish url, dev1.sandens.se/, and not, as expected, the English url, dev1.sandens.se/en/. (Of course, the urls also include https://)

Is this a bug? Or do I miss a setting somewhere?

If I add a custom search form with the Code element, like this:

<?php get_search_form(); ?>

this form seems to work just fine (= correct action attribute).

Hi @Bellul,

Yup you’re right, I was able to reproduce this as well. I have added this to our internal bug tracker :slight_smile:

Thanks for checking this out!

1 Like

Hi,

We’ve fixed this issue in Bricks 1.9.4, now available as a one-click update in your WordPress Dashboard.
Changelog: Bricks 1.9.4 Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse

Thanks! It seems to work now!

Best,
Bengt

1 Like