I’m having a little trouble with creating a custom menu in the panel as well as setting the homepage in the config.
Custom menu
In the site.yml I have set sections: mainMenu: label: Main Menu Pages type: pages
and in the template I have $menu_items = $site->mainMenu()->toPages();
but $menu_items is returning nothing when dumped.
Rerouting homepage
In config I have set return [ 'home' => 'bonuses', 'debug' => true ];
However, the URL for the new homepage is coming back empty sometimes, seems like it mostly occurs when trying to click back to the homepage from a sibling or child page.
In the config I set a new homepage, but now a weird bug is happening. When I use $site->url() on a sibling or a child page to return back to the homepage it does not pass in the URL for the href. However, this is only happening on mobile.
Took me all day to find this bug, but I finally found it. Turned out it had nothing to do with Kirby or my site. I was using Prepros for Live Preview and it was slightly changing the base URL. Thanks for all your help @texnixe