One more try at getting the currect url.

This commit is contained in:
Dan 2021-09-30 16:56:27 -04:00
parent 03c7a5eee2
commit 5924ee48f4
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class FileSchema(Schema):
def get_url(self, obj):
token = 'not_available'
base_url = connexion.request.host_url
base_url = flask.app.request.url_root
if obj.id is None:
return "" # We can't return a url for a file that isn't stored yet.
file_url = url_for("/v1_0.crc_api_file_get_file_data_link", file_id=obj.id)