Skip to content

Commit

Permalink
get_base_url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ote82 committed Oct 13, 2023
1 parent 825ed92 commit d757f21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analogic/multi_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@ def get_base_url(self, route=''):
url = request.environ.get('wsgi.url_scheme') + '://' + request.environ.get('HTTP_HOST')
name = self.name if self.name != self.PRIMARY_AUTHENTICATION_PROVIDER_NAME else ''
sub_path = [base[:-1], self.instance, name, route]
url += ('/'.join(filter(lambda x: x != 'default' and x is not None, sub_path)))
new_sub_path = ('/'.join(filter(lambda x: x != 'default' and x is not None, sub_path)))
url += (new_sub_path.replace('//', '/'))
return url

0 comments on commit d757f21

Please sign in to comment.