How do I remove trailing slashes in a URL.
For example: I want this url https://test.com/mypage/ to redirected to https://test.com/mypage
The fix should not affect the admin site. Fix is only needed for the public site.
We are using Kentico 12 MVC version
For performance reasons I would do this on the IIS level using URL rewriting rule you can find on Google or here on SO there are many threads on this topic how to do it in MVC routing. E.g. Remove Trailing Slash From the URL