Redirect with aliases creates acessible directories

When I create an alias like

aliases:
- foo/bar/baz

hugo creates the directories “foo” and “bar” which are accessible in the browser. The browser is displaying a directory view. Only the full path is redirecting to the given content.

I am not sure whether this is a problem at all. But for example Google Search Console reports it as a crawling error.

Is it possible to suppress this behaviour? And would it make sense?

juh

1 Like