MAINT-7051 Release Notes url shouldn't include the EDU parameter

master
AndreyL ProductEngine 2017-02-15 14:52:33 +02:00
parent a71ddeafc2
commit 3c249e5d5f
1 changed files with 6 additions and 1 deletions

View File

@ -3312,7 +3312,12 @@ LLSD LLAppViewer::getViewerInfo() const
std::string url = LLTrans::getString("RELEASE_NOTES_BASE_URL");
if (! LLStringUtil::endsWith(url, "/"))
url += "/";
url += LLURI::escape(LLVersionInfo::getChannel()) + "/";
std::string channel = LLVersionInfo::getChannel();
if (LLStringUtil::endsWith(boost::to_lower_copy(channel), " edu")) // Release Notes url shouldn't include the EDU parameter
{
boost::erase_tail(channel, 4);
}
url += LLURI::escape(channel) + "/";
url += LLURI::escape(LLVersionInfo::getVersion());
info["VIEWER_RELEASE_NOTES_URL"] = url;