Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed May 20, 2021
1 parent 8f0b447 commit fb28a07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_requirements(fname='requirements.txt'):

setup(
name="unicms",
version='0.16.5',
version='0.16.6',
description="uniCMS is a Django Web Content Management System",
author='Giuseppe De Marco, Francesco Filicetti',
author_email='giuseppe.demarco@unical.it, francesco.filicetti@unical.it',
Expand Down
5 changes: 3 additions & 2 deletions src/cms/contexts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def get_site_path(self, request=None):
domain = f'{self.site.domain}:{request.META["SERVER_PORT"]}'
else:
domain = f'{self.site.domain}'
url = f'{domain}/{CMS_PATH_PREFIX}{self.fullpath}'
return sanitize_path(url)
path = sanitize_path(f'{CMS_PATH_PREFIX}{self.fullpath}')
url = f'//{domain}/{path}'
return url

def save(self, *args, **kwargs):
# manage aliases
Expand Down

0 comments on commit fb28a07

Please sign in to comment.