- # get the domain url
- current_site = Site.objects.get_current()
- current_site = current_site.domain
-
- # getting the authority_hrn from the selected organization
- for authority in authorities:
- if authority['name'] == wsgi_request.POST.get('org_name', ''):
- authority_hrn = authority['authority_hrn']
+ if request.is_secure():
+ current_site = 'https://'
+ else:
+ current_site = 'http://'
+ current_site += request.META['HTTP_HOST']
+
+ #if theme.theme != 'fed4fire' or self.theme != 'onelab':
+ # getting the authority_hrn from the selected organization
+ # for authority in authorities:
+ # if authority['name'] == request.POST.get('org_name', ''):
+ # authority_hrn = authority['authority_hrn']