From 99ca2a1dd215ab6de687312dca62ef197f721c47 Mon Sep 17 00:00:00 2001 From: Narender Raju B Date: Fri, 6 Dec 2024 12:22:05 +0000 Subject: [PATCH] bugfix/FS-3891-fix-privacy-link (#682) --- app/create_app.py | 6 ++++++ app/default/content_routes.py | 4 ++++ app/templates/footer.html | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/create_app.py b/app/create_app.py index ca02166b..082a7c31 100644 --- a/app/create_app.py +++ b/app/create_app.py @@ -142,6 +142,11 @@ def inject_content_urls(): fund, round = find_fund_and_round_in_request() if fund and round: return dict( + accessibility_statement_url=url_for( + "content_routes.accessibility_statement", + fund=fund.short_name, + round=round.short_name, + ), contact_us_url=url_for( "content_routes.contact_us", fund=fund.short_name, @@ -167,6 +172,7 @@ def inject_content_urls(): request.args, ) return dict( + accessibility_statement_url=url_for("content_routes.accessibility_statement"), contact_us_url=url_for("content_routes.contact_us"), privacy_url=url_for("content_routes.privacy"), feedback_url=url_for("content_routes.feedback"), diff --git a/app/default/content_routes.py b/app/default/content_routes.py index 392eaf52..a07b0fb4 100644 --- a/app/default/content_routes.py +++ b/app/default/content_routes.py @@ -20,9 +20,13 @@ @content_bp.route("/accessibility_statement", methods=["GET"]) def accessibility_statement(): + fund, round = find_fund_and_round_in_request() + fund_name = fund.name if fund else None current_app.logger.info("Accessibility statement page loaded.") return render_template( "accessibility_statement.html", + round_data=round, + fund_name=fund_name, migration_banner_enabled=Config.MIGRATION_BANNER_ENABLED, ) diff --git a/app/templates/footer.html b/app/templates/footer.html index d24beb18..9d02fdd7 100644 --- a/app/templates/footer.html +++ b/app/templates/footer.html @@ -15,7 +15,7 @@ 'text': gettext('Cookies') }, { - 'href': '/accessibility_statement', + 'href': accessibility_statement_url, 'text': gettext('Accessibility Statement') }, {