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
This commit is contained in:
Cédric Krier committed 2025-05-21 11:16:56 +02:00
1 parent 4f9088a7d6
commit aad0f73ed5
1 file changed
+2 -1
+2 -1
View File
@@ -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();
});
}