Skip to content

Commit

Permalink
Merge pull request #472 from rojin254/fix/consistent-path-naming
Browse files Browse the repository at this point in the history
consistent naming for path and url strings
  • Loading branch information
pieroit authored Sep 28, 2023
2 parents 6461ad1 + 5e61094 commit d5e17ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/cat/looking_glass/cheshire_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def get_base_url(self):
secure = os.getenv('CORE_USE_SECURE_PROTOCOLS', '')
if secure != '':
secure = 's'
return f'http{secure}://{os.environ["CORE_HOST"]}:{os.environ["CORE_PORT"]}'
return f'http{secure}://{os.environ["CORE_HOST"]}:{os.environ["CORE_PORT"]}/'

def get_base_path(self):
"""Allows the Cat expose the base path."""
Expand All @@ -387,7 +387,7 @@ def get_plugin_path(self):

def get_static_url(self):
"""Allows the Cat expose the static server url."""
return self.get_base_url() + "/static"
return self.get_base_url() + "static/"

def get_static_path(self):
"""Allows the Cat expose the static files path."""
Expand Down

0 comments on commit d5e17ea

Please sign in to comment.