3 Commits

Author SHA1 Message Date
c198cf16fa Add comment for the matrix_client_element_logout_redirect_url variable 2024-12-23 21:03:29 +02:00
1fc4d175ac Simplify logout_redirect_url templating and make it safer
Using `to_json` to make it safer.

Judging by the code here 0b24d33c64/src/Lifecycle.ts (L1026-L1032)
it doesn't seem like it leaving `logout_redirect_url` empty will hurt, so this patch removes the `if` block.
2024-12-23 21:02:21 +02:00
b62302d547 Add logout_redirect_url var and option templating for matrix element client 2024-12-23 16:21:10 +01:00
2 changed files with 5 additions and 0 deletions

View File

@ -318,3 +318,7 @@ matrix_client_element_location_sharing_map_style_content_sources_localsource_til
# matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors" # matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors"
# Leave blank, if map does not require attribution. # Leave blank, if map does not require attribution.
matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: "" matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: ""
# Optional URL to redirect the user to after they have logged out.
# See https://github.com/element-hq/element-web/blob/develop/docs/config.md#sso-setup
matrix_client_element_logout_redirect_url: ''

View File

@ -40,6 +40,7 @@
{% if matrix_client_element_location_sharing_enabled %} {% if matrix_client_element_location_sharing_enabled %}
"map_style_url": {{ matrix_client_element_map_style_url | to_json }}, "map_style_url": {{ matrix_client_element_map_style_url | to_json }},
{% endif %} {% endif %}
"logout_redirect_url": {{ matrix_client_element_logout_redirect_url | to_json }},
"branding": { "branding": {
"auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }}, "auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }},
"auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }}, "auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }},