Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ <h4 class="ui inverted header">CodaBench</h4>
},
SECRET_KEY_URL: function (pk, secret_key) {
var url = "{% url "competitions:detail" pk=0 %}".replace(0, pk)
return `{{ request.get_host }}${url}?secret_key=${secret_key}`
return `{{ DOMAIN_NAME }}${url}?secret_key=${secret_key}`
},
COMPETITION_GET_ZIP: function (pk) {
let urlBase = "{% url "competition-results" pk=0 %}".replace(0, pk)
Expand Down
3 changes: 2 additions & 1 deletion src/utils/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ def common_settings(request):
'ENABLE_SIGN_UP': settings.ENABLE_SIGN_UP,
'ENABLE_SIGN_IN': settings.ENABLE_SIGN_IN,
'VERSION_INFO': version_info,
'HOME_PAGE_COUNTERS_INFO': home_page_counters_info
'HOME_PAGE_COUNTERS_INFO': home_page_counters_info,
'DOMAIN_NAME': settings.DOMAIN_NAME,
}