Skip to content

Commit

Permalink
Revert combining if lang statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 28, 2024
1 parent 63560e0 commit 543849f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pywb/apps/frontendapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,8 @@ def handle_request(self, environ, start_response):
lang = args.pop('lang', '')
if lang:
shift_path_info(environ)

if lang:
environ['pywb_lang'] = lang
elif self.default_locale:
environ['pywb_lang'] = self.default_locale
Expand Down

0 comments on commit 543849f

Please sign in to comment.