From aad0f73ed59a341e304c41ec54af2740ec58dcb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 21 May 2025 11:16:56 +0200 Subject: [PATCH] Store URL to open before getting the preferences The preferences may execute actions which may change the original URL at the login. Such that the original URL is never open. This is more visible since ac5d71376fca which makes the actions sequential. Closes #13975 (grafted from 792784aa4fa3ee0e95f078fc87573d8bc4a859f8) --HG-- branch : 7.0 --- sao/src/sao.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sao/src/sao.js b/sao/src/sao.js index 8523f7cc78..39bb32cf53 100644 --- a/sao/src/sao.js +++ b/sao/src/sao.js @@ -630,6 +630,7 @@ var Sao = { "Incompatible version of the server."), Sao.i18n.gettext("Version mismatch")); } else { + let url = window.location.hash.substr(1); Sao.Session.get_credentials() .then(function(session) { Sao.Session.current_session = session; @@ -639,7 +640,7 @@ var Sao = { .then(function(preferences) { Sao.menu(preferences); Sao.user_menu(preferences); - Sao.open_url(); + Sao.open_url(url); Sao.Bus.listen(); }); }