User Menu on Public Pages - Logout Link

Hello,

I am trying to insert a user menu on public pages when a user is logged in. Just the one shown on private pages “You are logged in as… etc”

I have this working using scene-render.any and then checking if Knack.session.user exists.

However, I am running into issues with the logout link, it seems like it is looking for a parent scene to go to so while it does log the user out it just has an endless spinner on the page.

This is the error I am receiving when I try to logout from a public page
TypeError: undefined is not an object (evaluating ‘e.get’)
in line 89779 k_d1c975f24ef0b27a40738f696c705a6979124ee0.js