Jump to >

djblets.privacy.templatetags.djblets_privacy

Privacy-related template tags.

pii_safe_page_url(context)[source]

Inject the current page URL with personal information redacted.

This makes use of djblets.privacy.pii.build_pii_safe_page_url() to inject a version of the current page URL with usernames or e-mail addresses redacted.

Parameters:context (django.templates.RequestContext) – The context for the page, containing a request variable.
Returns:The safe URL to inject into the page.
Return type:unicode

Example

ga('set', 'location', '{% pii_safe_page_url %}');