Updated link name and route

This commit is contained in:
alexjanousekGSA
2024-11-12 12:54:22 -05:00
parent 13e9b12367
commit 1a14becc9a
4 changed files with 6 additions and 3 deletions

View File

@@ -162,9 +162,11 @@ def _csp(config):
def create_app(application):
application.config['FEATURE_BEST_PRACTICES_ENABLED'] = os.getenv("FEATURE_BEST_PRACTICES_ENABLED", "false").lower() == "true"
@application.context_processor
def inject_feature_flags():
feature_best_practices_enabled = os.getenv("FEATURE_BEST_PRACTICES_ENABLED", "false").lower() == "true"
feature_best_practices_enabled = application.config['FEATURE_BEST_PRACTICES_ENABLED']
return dict(FEATURE_BEST_PRACTICES_ENABLED=feature_best_practices_enabled)
notify_environment = os.environ["NOTIFY_ENVIRONMENT"]

View File

@@ -29,7 +29,7 @@ def using_notify_nav():
},
{
"name": "Guides",
"link": "main.guides",
"link": "main.best_practices",
},
{
"name": "Trial mode",

View File

@@ -48,6 +48,7 @@ class HeaderNavigation(Navigation):
},
"guides": {
"guides",
"best-practies"
},
"using_notify": {
"get_started",

View File

@@ -6,7 +6,7 @@ header_navigation.is_selected('accounts-or-dashboard')},
] %}
{% if FEATURE_BEST_PRACTICES_ENABLED %}
{% set navigation = navigation + [{"href": url_for('main.guides'), "text": "Guides", "active":
{% set navigation = navigation + [{"href": url_for('main.best_practices'), "text": "Guides", "active":
header_navigation.is_selected('guides')}] %}
{% endif %}