Make base domain root path redirect also handle URLs with query strings (passing them along)
Previously `https://example.com` and `https://example.com/` would be redirected to `https://matrix.example.com`. However, `https://example.com/?something` was not handled and was tried to be served as a file by matrix-static-files for this base domain. From now on, paths containing query strings will be handled as well and the query string will be passed along. Example: `https://example.com/?something` -> `https://matrix.example.com/?something`
This commit is contained in:
@ -6094,7 +6094,7 @@ matrix_static_files_container_labels_base_domain_traefik_hostname: "{{ matrix_do
|
||||
|
||||
# If we're not serving a static webpage, serve a redirect instead of a 404.
|
||||
matrix_static_files_container_labels_base_domain_root_path_redirection_enabled: "{{ not matrix_static_files_file_index_html_enabled }}"
|
||||
matrix_static_files_container_labels_base_domain_root_path_redirection_url: "{{ ('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_matrix }}"
|
||||
matrix_static_files_container_labels_base_domain_root_path_redirection_url: "{{ ('https://' if matrix_playbook_ssl_enabled else 'http://') + matrix_server_fqn_matrix }}/${1}"
|
||||
|
||||
matrix_static_files_file_matrix_client_property_io_element_jitsi_preferred_domain: "{{ matrix_server_fqn_jitsi if jitsi_enabled else '' }}"
|
||||
|
||||
|
Reference in New Issue
Block a user