# User Menu on Public Pages - Logout Link

**URL:** <https://forums.knack.com/t/user-menu-on-public-pages-logout-link/13369>\
**Category:** Ask Developers\
**Created:** [November 7, 2022, 4:49pm UTC](https://forums.knack.com/t/user-menu-on-public-pages-logout-link/13369 "2022-11-07T16:49:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBS](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@JBS](https://forums.knack.com/u/JBS)\
**Post date:** [November 7, 2022, 4:49pm UTC](https://forums.knack.com/t/user-menu-on-public-pages-logout-link/13369/1 "2022-11-07T16:49:57Z")

</div>

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
