URL中的尾部斜杠重定向错误

In my website URL, when the last slash is removed, it works fine. However, when I do not remove it, it gives a redirect error.

The URL is like this:

https://example.com/test/2018/

This causes a redirect error, but when the last slash is removed,

https://example.com/test/2018

it works fine. Can anyone please help me with this issue?