Open andybroomfield opened 1 month ago
It's to do with the way this module tries to discover the subsite homepage. https://github.com/localgovdrupal/localgov_subsites_extras/blob/2b61f1ef6d073196bdaf6feeafc0a0b0e4e2f46f/src/Service/SubsiteService.php#L85-L106
We can't assume a menu link will always be a node, It could also be a view, custom controller, form, external or <nolink>
which is a common way of adding menu sections. Instead we should try to use the menu link and check if it's a node, and if not, continue up to the next level.
I'm pretty sure that https://github.com/localgovdrupal/localgov_subsites_extras/pull/16 will fix this.
When adding a
<nolink>
menu item to the subsites menu, the subsites menu causes a WSOD.What should happen: Menu displays with the nolink option