Redirects to same path but without slash

Hello! Redirects are not work, when we try to manually redirect from url with slash in the end to same url without slash. Like from /test/ to /test. Is there solution how to do this?

If you have a setup in the following manner: /test/index.html, and you want the file to be available at /test, it won’t work perfectly. Sometimes (if not always), the page would return a 404. The configuration is possible when you have the setup like: /test.html. This can be made possible using Asset Optimization feature.

There might be a possibility that you can configure the generation of pages in your Static Site Generator (if you use one).