{% if current_endpoint == 'instances' %}
{% set documentation_endpoint = "/integrations" %}
{% elif current_endpoint == 'global-config' or 'services' in request.path %}
{% set documentation_endpoint = "/features" %}
{% elif current_endpoint == 'configs' %}
{% set documentation_endpoint = "/concepts" %}
{% set documentation_fragment = "#custom-configurations" %}
{% elif 'plugins' in request.path %}
{% set documentation_endpoint = "/plugins" %}
{% elif current_endpoint == 'cache' %}
{% set documentation_endpoint = "/concepts" %}
{% set documentation_fragment = "#database" %}
{% elif current_endpoint == 'reports' or current_endpoint == 'bans' %}
{% set documentation_endpoint = "/advanced" %}
{% set documentation_fragment = "#persistence-of-bans-and-reports" %}
{% elif current_endpoint == 'jobs' %}
{% set documentation_endpoint = "/concepts" %}
{% set documentation_fragment = "#scheduler" %}
{% elif current_endpoint == 'logs' %}
{% set documentation_endpoint = "/web-ui" %}
{% set documentation_fragment = "#accessing-logs" %}
{% elif current_endpoint == 'pro' %}
{% set documentation_endpoint = "/professional-services" %}
{% elif current_endpoint == 'support' %}
{% set documentation_endpoint = "/troubleshooting" %}
{% elif current_endpoint == 'about' %}
{% set documentation_endpoint = "/about" %}
{% endif %}