diff --git a/indra/newview/llslurl.cpp b/indra/newview/llslurl.cpp
index 74e3e777282bc09bba316c58d720be2b4886aa85..e55acf96c1718311dccef0bcd903793c337b7ee4 100644
--- a/indra/newview/llslurl.cpp
+++ b/indra/newview/llslurl.cpp
@@ -205,7 +205,7 @@ LLSLURL::LLSLURL(const std::string& slurl)
 				// (or its a slurl.com or maps.secondlife.com URL).
 				if ((slurl_uri.scheme() == LLSLURL::SLURL_HTTP_SCHEME ||
 					 slurl_uri.scheme() == LLSLURL::SLURL_HTTPS_SCHEME) &&
-					slurl_uri.hostName() != LLGridManager::getInstance()->getGrid())
+					LLGridManager::getInstance()->getGridByProbing(slurl_uri.hostName()) != LLGridManager::getInstance()->getGrid())
 				{
 					return;
 				}