Begin Component Dummy
		Begin Label
			Label = "<html><head><script>" 
							+ "var waRequestHeaders = {};"
			EscapeType = None
		End

if(NotEmpty(Env("REMOTE_USER")))
{
		Begin Label
			Label = "waRequestHeaders['user'] = '" + Env("REMOTE_USER") + "';"
			EscapeType = None
		End
}
if(NotEmpty(Env("HTTP_USER_TOKEN")))
{
		Begin Label
			Label = "waRequestHeaders['userToken'] = '" + Env("HTTP_USER_TOKEN") + "';"
			EscapeType = None
		End
}
Begin Label
	Label = "sessionStorage.setItem('waRequestHeaders', JSON.stringify(waRequestHeaders));"
					+ "var lastSlashPosition = location.href.lastIndexOf('/');"
					+ "var newUrl = location.href.substring(0, (lastSlashPosition + 1));"
					+ "location.assign(newUrl);"
					+ "</script></head><body></body></html>"
	EscapeType = None
End

End
