From ef28fa026e26a1fbd76c438c431592f88089f92f Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 20 Jan 2022 23:40:47 +0000 Subject: [PATCH] Fix crash due to misnamed `path` argument in abs_url_for --- app/utils/flask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/flask.py b/app/utils/flask.py index 3e4b7e6..48bb400 100644 --- a/app/utils/flask.py +++ b/app/utils/flask.py @@ -33,9 +33,9 @@ def is_safe_url(target): # These are given to Jinja in template_filters.py -def abs_url_for(path, **kwargs): +def abs_url_for(endpoint: str, **kwargs): scheme = "https" if app.config["BASE_URL"][:5] == "https" else "http" - return url_for(path, _external=True, _scheme=scheme, **kwargs) + return url_for(endpoint, _external=True, _scheme=scheme, **kwargs) def abs_url(path): return urljoin(app.config["BASE_URL"], path)