From 41d2a60cba059539e708380f8964dea45a119546 Mon Sep 17 00:00:00 2001
From: AndreyL ProductEngine <andreylproductengine@lindenlab.com>
Date: Thu, 20 Aug 2015 12:04:57 +0300
Subject: [PATCH] MAINT-5533 FIXED The fragment part of an URI is only shown if
 it contains a query part as well. fix by Ansariel

---
 doc/contributions.txt          |  1 +
 indra/llcommon/lluriparser.cpp | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/doc/contributions.txt b/doc/contributions.txt
index 211d4fcf087..7493e96c39f 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 d98bc297e53..82d0dc8b4b2 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;
 	}
 }
 
-- 
GitLab