From f697acbf732631c1e48c02f3c4c9a7098dbb15bc Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: May 20 2019 22:38:51 +0000 Subject: Yet another attempt Signed-off-by: Rick Elrod --- diff --git a/sites/getfedora.org/main.py b/sites/getfedora.org/main.py index a5b28e6..022519d 100644 --- a/sites/getfedora.org/main.py +++ b/sites/getfedora.org/main.py @@ -98,7 +98,7 @@ babel = Babel(app) assets = Environment(app) assets.url_expire = True -freezer = Freezer(app, with_no_argument_rules=False, log_url_for=False) +freezer = Freezer(app) app.config['FREEZER_STATIC_IGNORE'] += ['/css', '/js', '/vendor'] js = Bundle( @@ -181,10 +181,6 @@ def export_route(name, path, template=None): # the i18n-specific index.html.langcode URL. # We tell the freezer to include the _i18n one, but everything else # refers to the pretty one. - # - # In particular, we *only* freeze the _i18n ones, but the url_for calls - # in templates refer to the non-i18n ones. The better way to do this - # would be to not. app.route('/' + path, endpoint=name)(r) app.route(path + 'index.html.', endpoint=name+'_i18n')(r) else: