Logout and Restart App button from within app

Is there a way to get the Logout URL or App Restart endpoint from within an app? We’re using flexdashboards which already has a navbar, I would like to save screen space, maybe have these in a drop-down menu from within the shiny app. I see in the thyme page it is a embedded with a dollar sign.

1 Like

I would love to know if this is possible, because I have a similar use case. Did you find a solution for this in the meantime?

I tried to get a restart button within an app (see below), but it did not work since the required javascript function cannot be found from within the application:

tags$a(
  class="btn btn-primary btn-sm btn-restart-app",
  onclick="Shiny.instances.eventHandlers.onRestartInstance();",
  role="button",
  "Restart app"
)

In addition, I tried to add a button with href='/logout', but that does not work when there is a custom logout url defined in the application.yml. Directly providing the logout-url seems to work, but is undesirable to hard-code it into the app. Is it possible to access the logout URL from the application.yml within an application?