Redirect URL with trailing slash to canonical URL without trailing slash

Htaccess would be one solution. Another would be PHP.

If you don’t find any better solution, maybe you can try this plugin:

https://github.com/jenstornell/kirby-redirect-to-slash

It works the other way around, redirect from no slash to slash. If you have PHP skills maybe you can modify it to work the other way?