Edit on GitHub
Jump to docs navigation

Twig Components / Methods / impersonation_exit_path

Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?

impersonation_exit_path(exitTo = null) is a Twig function to generate a URL that you can visit to exit user impersonation. After exiting impersonation, the user is redirected to the current URI. If you prefer to redirect to a different URI, define its value in the exitTo argument.

If no user is being impersonated, the function returns an empty string.

{{ impersonation_exit_path(exitTo = null) }}

exitTo (optional)
type: string

Source: Twig



Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.