Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
bugfix/FS-3891-fix-privacy-link (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
NarenderRajuB authored Dec 6, 2024
1 parent 26ae780 commit 99ca2a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"),
Expand Down
4 changes: 4 additions & 0 deletions app/default/content_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
2 changes: 1 addition & 1 deletion app/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'text': gettext('Cookies')
},
{
'href': '/accessibility_statement',
'href': accessibility_statement_url,
'text': gettext('Accessibility Statement')
},
{
Expand Down

0 comments on commit 99ca2a1

Please sign in to comment.