Can not include "layouts" as part of subdirectory names in layouts folder

I’ve been away for a while… and getting back into Hugo… but something has happened between Hugo .20-.22ish and Hugo v0.25.1 darwin/amd64 BuildDate: 2017-07-25T00:49:28-04:00 with GO 1.8.3 darwin/amd64 I wasn’t getting this issue previously before doing an update to .25.1

When HUGO resolves any partials in the theme directories (haven’t tested with local partials, or other similar scenarios) if the path includes the word “layouts” Hugo sees that as a reference to the main layouts folder and rewrites the path to adding an unwanted forward slash before the word “layouts”.

For example:

would be transformed into and parsed as:


would be transformed into and parsed as:

The simple work around is to just rename those folders to NOT include the word “layouts” Not sure if any other words should be reserved.

Anyone know if this is now by design and I just missed a warning about it? Or should I be digging in the code to submit a bug report/patch?