"Uncaught TypeError: Cannot read property 'name' of undefined" when clicking Home in breadcrumbs // with custom pages plugin
I've got a problem and was hoping you guys could help me out.
I'm using the Custom Static Pages plugin to create custom pages for my NodeBB installation. One of the pages, called Home, is being used as the new homepage for the forum. It's working as expected and whenever somebody visits my NodeBB installation
they get redirected to the /home page just fine.
However, when I go to any other page where the breadcrumbs are visible, whenever I click "Home" in the breadcrumbs (not the header, mind you) - it refers me to the base URL without the slash at the end (ie: 'community.tmi.news' instead of 'community.tmi.news/' - which then redirects me to the base URL and gets stuck on loading, forcing me to refresh the screen.
I've tested this on multiple browsers and they all get the same error: "Uncaught TypeError: Cannot read property 'name' of undefined".
I've tried setting the installation URL in the config.json to include the trailing slash at the end, but that didn't fix the issue and broke some other stuff such as the alternative login methods.
Now I'm not sure if this is due to the custom-pages plugin or something else - hence I'm posting it here instead of in the plugin issues.
Any advice would be much appreciated!
Location of my installation: https://community.tmi.news
not sure how to fix your issue but I use nodebb-plugin-custom-homepage on my forum alongside custom static pages with no issues on v1.x.x
so it might just be easier to move to this for your homepage
@phit I'll give that a go, thanks!
Edit: solved my issue, thanks! However I'm still curious as to what caused the issue in the first place...