diff --git a/doc/contributions.txt b/doc/contributions.txt
index 211d4fcf087e42b4144fb1e2e830acaa5e387032..7493e96c39f40ce33fa7f3c4e55f4662da0ed93d 100755
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -185,6 +185,7 @@ Ansariel Hiller
 	BUG-3764
 	STORM-1984
 	STORM-1979
+	MAINT-5533
 Aralara Rajal
 Arare Chantilly
 	CHUIBUG-191
diff --git a/indra/llcommon/lluriparser.cpp b/indra/llcommon/lluriparser.cpp
index d98bc297e53e6992f5b84768b8e868af986c81b0..82d0dc8b4b25889b35c12b64f53bcf3bc094573a 100644
--- a/indra/llcommon/lluriparser.cpp
+++ b/indra/llcommon/lluriparser.cpp
@@ -238,12 +238,12 @@ void LLUriParser::glueSecond(std::string& uri) const
 	{
 		uri += '?';
 		uri += mQuery;
+	}
 
-		if (mFragment.size())
-		{
-			uri += '#';
-			uri += mFragment;
-		}
+	if (mFragment.size())
+	{
+		uri += '#';
+		uri += mFragment;
 	}
 }