MAINT-6976 Fixed incorrect search line for open grid's in Search floater
parent
36235df02d
commit
1144fdc044
|
|
@ -4545,7 +4545,7 @@
|
|||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>http://search.secondlife.com/viewer/[CATEGORY]/?q=[QUERY]&p=[AUTH_TOKEN]&r=[MATURITY]&lang=[LANGUAGE]&g=[GODLIKE]&sid=[SESSION_ID]&rid=[REGION_ID]&pid=[PARCEL_ID]&channel=[CHANNEL]&version=[VERSION]&major=[VERSION_MAJOR]&minor=[VERSION_MINOR]&patch=[VERSION_PATCH]&build=[VERSION_BUILD]</string>
|
||||
<string>https://search.[GRID]/viewer/[CATEGORY]/?q=[QUERY]&p=[AUTH_TOKEN]&r=[MATURITY]&lang=[LANGUAGE]&g=[GODLIKE]&sid=[SESSION_ID]&rid=[REGION_ID]&pid=[PARCEL_ID]&channel=[CHANNEL]&version=[VERSION]&major=[VERSION_MAJOR]&minor=[VERSION_MINOR]&patch=[VERSION_PATCH]&build=[VERSION_BUILD]</string>
|
||||
</map>
|
||||
<key>HighResSnapshot</key>
|
||||
<map>
|
||||
|
|
|
|||
|
|
@ -224,6 +224,22 @@ std::string LLWeb::expandURLSubstitutions(const std::string &url,
|
|||
}
|
||||
substitution["PARCEL_ID"] = llformat("%d", parcel_id);
|
||||
|
||||
// find the grid
|
||||
std::string current_grid = LLGridManager::getInstance()->getGridId();
|
||||
std::transform(current_grid.begin(), current_grid.end(), current_grid.begin(), ::tolower);
|
||||
if (current_grid == "agni")
|
||||
{
|
||||
substitution["GRID"] = "secondlife.com";
|
||||
}
|
||||
else if (current_grid == "damballah")
|
||||
{
|
||||
// Staging grid has its own naming scheme.
|
||||
substitution["GRID"] = "secondlife-staging.com";
|
||||
}
|
||||
else
|
||||
{
|
||||
substitution["GRID"] = llformat("%s.lindenlab.com", current_grid.c_str());
|
||||
}
|
||||
// expand all of the substitution strings and escape the url
|
||||
std::string expanded_url = url;
|
||||
LLStringUtil::format(expanded_url, substitution);
|
||||
|
|
|
|||
Loading…
Reference in New Issue