From 553a3bee5d75bec98dc06fd016449e2c11935aba Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 7 Aug 2026 11:54:16 +0200 Subject: [PATCH] feat(user): add checkbox to include aliases in mobileconfig links --- data/web/js/site/user.js | 14 ++++++++++++++ data/web/templates/user/tab-user-auth.twig | 17 +++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index 288e7abd2..43e091013 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -701,4 +701,18 @@ jQuery(function($){ onVisible("[id^=sync_job_table]", () => draw_sync_job_table()); onVisible("[id^=app_passwd_table]", () => draw_app_passwd_table()); onVisible("[id^=recent-logins]", () => last_logins('get')); + + // Toggle aliases in mobileconfig links + $('#mobileconfig-with-aliases').on('change', function() { + $('.mobileconfig-link').each(function() { + var url = new URL($(this).attr('href'), window.location.origin); + if ($('#mobileconfig-with-aliases').is(':checked')) { + url.searchParams.set('with_aliases', ''); + } else { + url.searchParams.delete('with_aliases'); + } + var query = url.searchParams.toString(); + $(this).attr('href', query ? url.pathname + '?' + query : url.pathname); + }); + }); }); diff --git a/data/web/templates/user/tab-user-auth.twig b/data/web/templates/user/tab-user-auth.twig index 171545d6c..11801c2ca 100644 --- a/data/web/templates/user/tab-user-auth.twig +++ b/data/web/templates/user/tab-user-auth.twig @@ -67,12 +67,12 @@
{% if not skip_sogo %} {% endif %}
@@ -84,16 +84,25 @@
{% if not skip_sogo %} {% endif %}
+
+
+
+
+ + +
+
+