> 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_add_trailing_slash.md).

# weglot\_add\_trailing\_slash

By default Weglot adds a trailing slash to translated links. Return `false` to keep links without a trailing slash.

```php
add_filter( 'weglot_add_trailing_slash', '__return_false' );
```
