Currently, every URL of my Hugo site work with and without a trailing slash. Search engines may see this as duplicate content and treat each URL as a separate page.
I would like to redirect any hit without
/ at the end to the
So if someone visit
mywebsite.com/cool-page, they will be redirected to the
mywebsite.com/cool-page/ version (with slash).
How can I achieve it? Is there any setting within Hugo to take care of it?