> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/wordpress/helpers-functions-1/weglot_autoredirect_js.md).

# weglot\_autoredirect\_js

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.

```php
add_filter( 'weglot_autoredirect_js', '__return_true' );
```
