I have a modified Bedrock installation that moves the theme folder outside of the
wp-content folder (and the normal
app folder for Bedrock). In this setup, the
app folder has a
data folder that is the new
wp-content and outside of it I have the plugins, mu-plugins and themes. This setup has worked for normal themes, but with an FSE theme, the
template directory is not working.
Normally within the theme folder, you can have a
templates folder or
block-templates folder (the last one will is deprecated, but still works). When I open the editor, I get a message that the front page template is not found. But if I add that using the gutenberg plugin, it reveals the actual problem (shown in the image below). For some reason the name of the template is the full path of the repo. On my laptop, the repo is called
wp so the
web is the web root folder.
If I rename the
templates folder to
block-templates it seems to work fine, but I do not want to do that since that one will be depricated (and I cannot influence Twenty Twenty-Three). Is there a filter or setting that I am missing?