diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 97e1651c9..871753d0e 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -7814,7 +7814,7 @@ This should be as low as possible, but too low may break functionality WebProfileURL Comment - URL for SL Web Profiles + URL for Web Profiles Persist 0 Type @@ -7822,17 +7822,6 @@ This should be as low as possible, but too low may break functionality Value https://my.secondlife.com/[AGENT_NAME] - WebProfileNonProductionURL - - Comment - URL for SL Web Profiles on Non-Production grids - Persist - 0 - Type - String - Value - https://my-demo.secondlife.com/[AGENT_NAME] - HighResSnapshot Comment diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 42db9fdd6..d3110bcde 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -47,16 +47,7 @@ static const std::string PANEL_PICKS = "panel_picks"; std::string getProfileURL(const std::string& agent_name) { - std::string url; - - if (gHippoGridManager->getConnectedGrid()->isInProductionGrid()) - { - url = gSavedSettings.getString("WebProfileURL"); - } - else - { - url = gSavedSettings.getString("WebProfileNonProductionURL"); - } + std::string url = gSavedSettings.getString("WebProfileURL"); LLSD subs; subs["AGENT_NAME"] = agent_name; url = LLWeb::expandURLSubstitutions(url,subs); diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 1c5b2cacd..245b24e86 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -4281,6 +4281,18 @@ bool process_login_success_response(std::string& password) gSavedSettings.setString("MapServerURL", map_server_url); LLWorldMap::gotMapServerURL(true); } + + if(gHippoGridManager->getConnectedGrid()->isOpenSimulator()) + { + std::string web_profile_url = response["web_profile_url"]; + if(!web_profile_url.empty()) + gSavedSettings.setString("WebProfileURL", web_profile_url); + } + else if(!gHippoGridManager->getConnectedGrid()->isInProductionGrid()) + { + gSavedSettings.setString("WebProfileURL", "https://my-demo.secondlife.com/[AGENT_NAME]"); + } + // Initial outfit for the user. LLSD initial_outfit = response["initial-outfit"][0]; if(initial_outfit.size())