weglot_autoredirect_js
add_filter( 'weglot_autoredirect_js', '__return_true' );Return true to perform the auto-redirect via the front-end JS library instead of server-side. Useful behind aggressive caching that interferes with server redirects.
add_filter( 'weglot_autoredirect_js', '__return_true' );